Defect #22532 » test_login_should_strip_whitescapes_from_user_name.diff
| test/functional/account_controller_test.rb | ||
|---|---|---|
|
assert_response 302
|
||
|
end
|
||
|
def test_login_should_strip_whitespaces_from_user_name
|
||
|
post :login, :params => {
|
||
|
:username => ' jsmith ',
|
||
|
:password => 'jsmith'
|
||
|
}
|
||
|
assert_response 302
|
||
|
assert_equal 2, @request.session[:user_id]
|
||
|
end
|
||
|
def test_get_logout_should_not_logout
|
||
|
@request.session[:user_id] = 2
|
||
|
get :logout
|
||
- « Previous
- 1
- 2
- 3
- Next »