summaryrefslogtreecommitdiff
path: root/test/unit/account_test.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-13 14:03:53 +0200
committerAzul <azul@leap.se>2014-05-13 14:42:07 +0200
commitbbe9de73352b5aa937173b4158267f6a37e9ca5f (patch)
tree3006005b5f700adcee472cf8bf1d701c241a6d30 /test/unit/account_test.rb
parent81a4a0527639fe4b560b8d98f977f6dbac67bb41 (diff)
destinguish user.email from user.email_address
use the former if you want a working email account or nil, the latter if you want the email address associated with a given user no matter if the user actually has an email account or not.
Diffstat (limited to 'test/unit/account_test.rb')
-rw-r--r--test/unit/account_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/account_test.rb b/test/unit/account_test.rb
index 4fb3c3d..b2bfe27 100644
--- a/test/unit/account_test.rb
+++ b/test/unit/account_test.rb
@@ -8,7 +8,7 @@ class AccountTest < ActiveSupport::TestCase
test "create a new account" do
user = Account.create(FactoryGirl.attributes_for(:user))
- assert user.valid?
+ assert user.valid?, "unexpected errors: #{user.errors.inspect}"
assert user.persisted?
assert id = user.identity
assert_equal user.email_address, id.address