Revision 7592
Added by Toshi MARUYAMA over 13 years ago
trunk/test/unit/user_test.rb | ||
---|---|---|
355 | 355 |
end |
356 | 356 |
|
357 | 357 |
should "select the exact matching user first" do |
358 |
case_sensitive_user = User.generate_with_protected!(:login => 'changed', :password => 'admin', :password_confirmation => 'admin') |
|
358 |
case_sensitive_user = User.generate_with_protected!( |
|
359 |
:login => 'changed', :password => 'admin', |
|
360 |
:password_confirmation => 'admin') |
|
359 | 361 |
# bypass validations to make it appear like existing data |
360 | 362 |
case_sensitive_user.update_attribute(:login, 'ADMIN') |
361 | 363 |
|
Also available in: Unified diff
code layout clean up of test/unit/user_test.rb