Browse files

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

  • Loading branch information...
1 parent 1bcfc14 commit c4ca01d2d5d5a5d1b111daf88cc6be60d5c51d5b @jyurek jyurek committed Jun 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/paperclip_test.rb
View
2 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] =~ %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

0 comments on commit c4ca01d

Please sign in to comment.