Commit 82b3114b by Sid Raval Committed by Sid Raval

Update spec, since implementation now calls `@destination.close`

parent 0bd30e22
......@@ -125,10 +125,6 @@ describe Paperclip::AbstractAdapter do
it "should be able to reopen the file after symlink has failed" do
FileUtils.expects(:ln).raises(Errno::EXDEV)
# after the failed symlink the file reports a size of zero
# which makes it necessary to reopen it
# we simulate this condition by closing the file
subject.destination.close
expect(subject.copy_to_tempfile(file).read).to eq(body)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment