Permalink
Browse files

Get image size from real thumbnail, instead of hardcoded value.

  • Loading branch information...
1 parent 093168f commit d334e8b1f11ba524e2a79f159f68bf5663a5ea2f @y8 y8 committed Mar 5, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 spec/paperclip-meta/paperclip-meta_spec.rb
@@ -41,7 +41,9 @@
end
it 'should save file size with meta data ' do
- @image.big_image.size(:small).should == 3526
+ path = File.join(File.dirname(__FILE__), "../tmp/fixtures/tmp/small/#{@image.id}.jpg")
+ size = File.stat(path).size
+ @image.big_image.size(:small).should == size
end
it 'should access normal paperclip method when no style passed' do

0 comments on commit d334e8b

Please sign in to comment.