Commit 2bb868ad authored by tmaruyama's avatar tmaruyama

code layout clean up of test/unit/user_test.rb

git-svn-id: https://svn.redmine.org/redmine/trunk@7592 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 99b8cb17
......@@ -355,7 +355,9 @@ class UserTest < ActiveSupport::TestCase
end
should "select the exact matching user first" do
case_sensitive_user = User.generate_with_protected!(:login => 'changed', :password => 'admin', :password_confirmation => 'admin')
case_sensitive_user = User.generate_with_protected!(
:login => 'changed', :password => 'admin',
:password_confirmation => 'admin')
# bypass validations to make it appear like existing data
case_sensitive_user.update_attribute(:login, 'ADMIN')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment