Skip to content

Commit

Permalink
Fix for a test that has differing semantics in 2.3 and 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Jun 9, 2010
1 parent 1bcfc14 commit c4ca01d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/paperclip_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit c4ca01d

Please sign in to comment.