Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Update spec, since implementation now calls @destination.close
Browse files Browse the repository at this point in the history
  • Loading branch information
Sid Raval authored and sidraval committed Mar 2, 2018
1 parent 0bd30e2 commit 82b3114
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions spec/paperclip/io_adapters/abstract_adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ class TestLinkOrCopyAdapter < Paperclip::AbstractAdapter

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
Expand Down

0 comments on commit 82b3114

Please sign in to comment.