Skip to content
Browse files

Added a uniqueness validation test that uses diacritics.

[#2883 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent c2f9c42 commit ff60ec469fd85db450c9c2c7eb8f9d9254e45988 @hugopeixoto hugopeixoto committed with jeremy Aug 8, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/validations/uniqueness_validation_test.rb
View
4 activerecord/test/cases/validations/uniqueness_validation_test.rb
@@ -43,13 +43,13 @@ class UniquenessValidationTest < ActiveRecord::TestCase
def test_validate_uniqueness
Topic.validates_uniqueness_of(:title)
- t = Topic.new("title" => "I'm unique!")
+ t = Topic.new("title" => "I'm uniqué!")
assert t.save, "Should save t as unique"
t.content = "Remaining unique"
assert t.save, "Should still save t as unique"
- t2 = Topic.new("title" => "I'm unique!")
+ t2 = Topic.new("title" => "I'm uniqué!")
assert !t2.valid?, "Shouldn't be valid"
assert !t2.save, "Shouldn't save t2 as unique"
assert_equal ["has already been taken"], t2.errors[:title]

0 comments on commit ff60ec4

Please sign in to comment.
Something went wrong with that request. Please try again.