Permalink
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 d44b5c6 commit a8286af3c335eeb80245db2ffbcfc6c06fb6fc60 @hugopeixoto hugopeixoto committed with jeremy Aug 8, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/validations_test.rb
@@ -345,13 +345,13 @@ def test_validate_presences
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.on(:title)

0 comments on commit a8286af

Please sign in to comment.