test/iostream_test.rb in paperclip-2.2.0 vs test/iostream_test.rb in paperclip-2.2.1
- old
+ new
@@ -18,10 +18,11 @@
context "that is sent #stream_to" do
context "and given a String" do
setup do
- assert @result = @file.stream_to("/tmp/iostream.string.test")
+ FileUtils.mkdir_p(File.join(ROOT, 'tmp'))
+ assert @result = @file.stream_to(File.join(ROOT, 'tmp', 'iostream.string.test'))
end
should "return a File" do
assert @result.is_a?(File)
end