Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_unsuccessful_login
- get '/login'
- assert_response :success
- assert_tag :tag => "input", :attributes => { :id => "username" }
- assert_tag :tag => "input", :attributes => { :id => "password" }
- assert_tag :tag => "input", :attributes => { :value => "Log In" }
- assert_tag :tag => "a", :child => { :content => "Forgot Your Password?" }
- post '/authentications/authenticate_login', :username => "site_coordinator", :password => "wrongpassword"
- assert_response :redirect
- assert_redirected_to 'login'
- follow_redirect!
- assert_tag :tag => "p", :attributes => { :id => "notice" }
- end
Add Comment
Please, Sign In to add comment