Commit c4ca01d2 by Jon Yurek

Fix for a test that has differing semantics in 2.3 and 3.0

parent 1bcfc143
...@@ -308,7 +308,7 @@ class PaperclipTest < Test::Unit::TestCase ...@@ -308,7 +308,7 @@ class PaperclipTest < Test::Unit::TestCase
end end
should "have a file size min/max error message" do should "have a file size min/max error message" do
assert @dummy.errors[:avatar_file_size] =~ %r/between 0 and 10240 bytes/ assert [@dummy.errors[:avatar_file_size]].flatten.any?{|error| error =~ %r/between 0 and 10240 bytes/ }
end end
end end
end 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