mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
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:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user