Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def test_login_then_dashboard
- user = users(:theo)
- no_login do
- get '/user/login'
- end
- assert_response :success
- post '/user/login', :user => { :login => 'theo', :password => '1234' }
- assert_response :redirect
- assert_redirected_to :action => :index
- # login with needed as current_member is used in the dashboard action.
- get "/profile/dashboard/#{user.profile.to_param}"
- assert_response :success
- end
Add Comment
Please, Sign In to add comment