Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit c4ca01d2d5d5a5d1b111daf88cc6be60d5c51d5b 1 parent 1bcfc14
Jon Yurek jyurek authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/paperclip_test.rb
2  test/paperclip_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.