test/iostream_test.rb in paperclip-2.1.5 vs test/iostream_test.rb in paperclip-2.2.0
- old
+ new
@@ -12,9 +12,11 @@
context "A file" do
setup do
@file = File.new(File.join(File.dirname(__FILE__), "fixtures", "5k.png"), 'rb')
end
+ teardown { @file.close }
+
context "that is sent #stream_to" do
context "and given a String" do
setup do
assert @result = @file.stream_to("/tmp/iostream.string.test")