summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-29 10:04:07 +0200
committerAzul <azul@leap.se>2014-05-29 10:04:07 +0200
commite0d31118d6e4110d2c280afa9415cfe9def29deb (patch)
treeffa589ee7df174d0eaa20cec254a7251f425f402 /test
parent016e61ce9ab44cf58355e843b0c0d0085d373fc7 (diff)
hand on errors from Email to Identity to User
errors.each iterates through all errors for all attrbibutes nicely.
Diffstat (limited to 'test')
-rw-r--r--test/unit/identity_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/identity_test.rb b/test/unit/identity_test.rb
index 9c938f8..54c0657 100644
--- a/test/unit/identity_test.rb
+++ b/test/unit/identity_test.rb
@@ -107,6 +107,7 @@ class IdentityTest < ActiveSupport::TestCase
other_user = find_record :user
taken = Identity.build_for other_user, address: id.address
assert !taken.valid?
+ assert_equal ["has already been taken"], taken.errors[:address]
Identity.destroy_all_disabled
end