diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-07 04:16:03 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-07 04:16:03 +0000 |
commit | 5edabcd8b5a85c9c439a6a2f0e1a7add62c5aae7 (patch) | |
tree | 60291747283291e789d410148a96e40aab32e24a | |
parent | a17fcac8226473feb0f248c54ba2a829dd5bcd54 (diff) | |
download | redmine-5edabcd8b5a85c9c439a6a2f0e1a7add62c5aae7.tar.gz redmine-5edabcd8b5a85c9c439a6a2f0e1a7add62c5aae7.zip |
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
-rw-r--r-- | test/unit/user_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 548fdaf6e..132ddb5b2 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -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') |