Browse files

not sure why TempFile#size isnt working, using File.size instead

  • Loading branch information...
1 parent 17919a2 commit 939a894cc2846f73e06886bad2d825c79a251bd1 @technoweenie committed Dec 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/tasks/s3_spec.rb
View
2 spec/tasks/s3_spec.rb
@@ -72,7 +72,7 @@ def delete_s3_object
t.write chunk
end
t.close
- t.size.should == @asset.size
+ File.size(t.path).should == @asset.size
rescue EOFError
pending "AWS::S3 streaming seems to be busted: #{$!.to_s}"
end

0 comments on commit 939a894

Please sign in to comment.