test/storage/filesystem_test.rb in paperclip-2.4.3 vs test/storage/filesystem_test.rb in paperclip-2.4.4
- old
+ new
@@ -42,9 +42,13 @@
should "store the file" do
assert File.exists?(@dummy.avatar.path)
end
+ should "store the path unescaped" do
+ assert_match /\/spaced file\.png/, @dummy.avatar.path
+ end
+
should "return an escaped version of URL" do
assert_match /\/spaced%20file\.png/, @dummy.avatar.url
end
end
end