code format clean up MemberTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12393 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
424393c28c
commit
0e4657cfad
|
@ -69,7 +69,8 @@ class MemberTest < ActiveSupport::TestCase
|
|||
assert !member.save
|
||||
|
||||
# must have one role at least
|
||||
user = User.new(:firstname => "new1", :lastname => "user1", :mail => "test_validate@somenet.foo")
|
||||
user = User.new(:firstname => "new1", :lastname => "user1",
|
||||
:mail => "test_validate@somenet.foo")
|
||||
user.login = "test_validate"
|
||||
user.password, user.password_confirmation = "password", "password"
|
||||
assert user.save
|
||||
|
@ -84,7 +85,8 @@ class MemberTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_validate_member_role
|
||||
user = User.new(:firstname => "new1", :lastname => "user1", :mail => "test_validate@somenet.foo")
|
||||
user = User.new(:firstname => "new1", :lastname => "user1",
|
||||
:mail => "test_validate@somenet.foo")
|
||||
user.login = "test_validate_member_role"
|
||||
user.password, user.password_confirmation = "password", "password"
|
||||
assert user.save
|
||||
|
|
Loading…
Reference in New Issue