Commit 980c9b93 by Joshua Clayton

Fix test assertion to not break in Ruby 1.9.1

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