test/integration_test.rb in thoughtbot-paperclip-2.2.2 vs test/integration_test.rb in thoughtbot-paperclip-2.2.3
- old
+ new
@@ -104,9 +104,13 @@
should "not have its next two parent directories" do
assert ! File.exists?(File.dirname(@saved_path))
assert ! File.exists?(File.dirname(File.dirname(@saved_path)))
end
+
+ before_should "not die if an unexpected SystemCallError happens" do
+ FileUtils.stubs(:rmdir).raises(Errno::EPIPE)
+ end
end
end
end
context "A model with no attachment validation" do