Skip to content

Commit

Permalink
Fix test assertion to not break in Ruby 1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Jun 7, 2010
1 parent a1de414 commit 980c9b9
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].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
Expand Down

0 comments on commit 980c9b9

Please sign in to comment.