summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-28 12:29:50 +0200
committerAzul <azul@leap.se>2014-05-28 12:29:50 +0200
commit5b601707c8af8454dacf2edd846bc3386e148253 (patch)
tree76f9c60bff98c8fcf410d493dfb665c6e8634d77 /test
parent09dfa583eca69a3925c384c67c3d98cd8c69b360 (diff)
adopt tests to new error messages for identities
Diffstat (limited to 'test')
-rw-r--r--test/unit/identity_test.rb4
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