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:
Toshi MARUYAMA 2013-12-09 06:15:31 +00:00
parent 424393c28c
commit 0e4657cfad
1 changed files with 4 additions and 2 deletions

View File

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