From: Toshi MARUYAMA Date: Fri, 7 Oct 2011 04:16:03 +0000 (+0000) Subject: code layout clean up of test/unit/user_test.rb X-Git-Tag: 1.3.0~391 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5edabcd8b5a85c9c439a6a2f0e1a7add62c5aae7;p=redmine.git 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 --- 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')