Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit d334e8b1f11ba524e2a79f159f68bf5663a5ea2f 1 parent 093168f
authored March 05, 2012
4  spec/paperclip-meta/paperclip-meta_spec.rb
@@ -41,7 +41,9 @@
41 41
     end
42 42
 
43 43
     it 'should save file size with meta data ' do
44  
-      @image.big_image.size(:small).should == 3526
  44
+      path = File.join(File.dirname(__FILE__), "../tmp/fixtures/tmp/small/#{@image.id}.jpg")
  45
+      size = File.stat(path).size
  46
+      @image.big_image.size(:small).should == size
45 47
     end
46 48
 
47 49
     it 'should access normal paperclip method when no style passed' do

0 notes on commit d334e8b

Please sign in to comment.
Something went wrong with that request. Please try again.