diff options
author | Azul <azul@leap.se> | 2014-05-28 12:29:50 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-28 12:29:50 +0200 |
commit | 5b601707c8af8454dacf2edd846bc3386e148253 (patch) | |
tree | 76f9c60bff98c8fcf410d493dfb665c6e8634d77 | |
parent | 09dfa583eca69a3925c384c67c3d98cd8c69b360 (diff) |
adopt tests to new error messages for identities
-rw-r--r-- | test/unit/identity_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/identity_test.rb b/test/unit/identity_test.rb index eca104f..9c938f8 100644 --- a/test/unit/identity_test.rb +++ b/test/unit/identity_test.rb @@ -39,7 +39,7 @@ class IdentityTest < ActiveSupport::TestCase id = Identity.create_for @user, address: alias_name, destination: forward_address dup = Identity.build_for @user, address: alias_name, destination: forward_address assert !dup.valid? - assert_equal ["This alias already exists"], dup.errors[:base] + assert_equal ["has already been taken"], dup.errors[:destination] id.destroy end @@ -48,7 +48,7 @@ class IdentityTest < ActiveSupport::TestCase id = Identity.create_for @user, address: alias_name, destination: forward_address taken = Identity.build_for other_user, address: alias_name assert !taken.valid? - assert_equal ["This email has already been taken"], taken.errors[:base] + assert_equal ["has already been taken"], taken.errors[:address] id.destroy end |