Commit ae59b0fa424b73fc7e8ba15d6e808aa2ef13a095

Authored by Carlos Purificação
1 parent c4f08ac2

Aded message test

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
... ...