diff options
author | Hugo Peixoto <hugo.peixoto@gmail.com> | 2009-08-08 23:22:22 +0100 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-09 11:51:58 -0700 |
commit | ff60ec469fd85db450c9c2c7eb8f9d9254e45988 (patch) | |
tree | 7e8ce232a6e71b2fb6e0b34ae9dcb820aaf81406 /activerecord/test/cases | |
parent | c2f9c42719b248bec93801d69791351bdf97ecd0 (diff) | |
download | rails-ff60ec469fd85db450c9c2c7eb8f9d9254e45988.tar.gz rails-ff60ec469fd85db450c9c2c7eb8f9d9254e45988.tar.bz2 rails-ff60ec469fd85db450c9c2c7eb8f9d9254e45988.zip |
Added a uniqueness validation test that uses diacritics.
[#2883 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/validations/uniqueness_validation_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/validations/uniqueness_validation_test.rb b/activerecord/test/cases/validations/uniqueness_validation_test.rb index 961db51d1d..8a3950b5aa 100644 --- a/activerecord/test/cases/validations/uniqueness_validation_test.rb +++ b/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] |