diff --git a/spec/paperclip/io_adapters/abstract_adapter_spec.rb b/spec/paperclip/io_adapters/abstract_adapter_spec.rb index 4d21733b5..d2906fd5b 100644 --- a/spec/paperclip/io_adapters/abstract_adapter_spec.rb +++ b/spec/paperclip/io_adapters/abstract_adapter_spec.rb @@ -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