Permalink
Browse files

Fix test assertion to not break in Ruby 1.9.1

  • Loading branch information...
joshuaclayton committed Jun 7, 2010
1 parent a1de414 commit 980c9b93599045202612b557be42fcc1a3a1c442
Showing with 1 addition and 1 deletion.
  1. +1 −1 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].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

0 comments on commit 980c9b9

Please sign in to comment.