diff --git a/test/paperclip_test.rb b/test/paperclip_test.rb index 5113b3180..03a038dbb 100644 --- a/test/paperclip_test.rb +++ b/test/paperclip_test.rb @@ -308,7 +308,7 @@ def self.should_validate validation, options, valid_file, invalid_file 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