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

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7592 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-10-07 04:16:03 +00:00
parent a17fcac822
commit 5edabcd8b5
1 changed files with 3 additions and 1 deletions

View File

@ -355,7 +355,9 @@ class UserTest < ActiveSupport::TestCase
end end
should "select the exact matching user first" do 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 # bypass validations to make it appear like existing data
case_sensitive_user.update_attribute(:login, 'ADMIN') case_sensitive_user.update_attribute(:login, 'ADMIN')