Commit a625a7d856a247006692b2e9fbdcfda73cdcc09b
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'user-messages' into production
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
test/unit/user_test.rb
... | ... | @@ -27,6 +27,8 @@ class UserTest < ActiveSupport::TestCase |
27 | 27 | user1.save! |
28 | 28 | user2 = new_user(:login => 'new_user') |
29 | 29 | assert user2.errors[:login].present? |
30 | + expected = ["has already been taken"] | |
31 | + assert_equal expected, user2.errors[:login] | |
30 | 32 | end |
31 | 33 | |
32 | 34 | def test_should_require_password | ... | ... |