Sha256: 27c7b3587fc6dda3f2e51b849b69002d1d3bec4c9ae704f0ccc14e2f8c511028
Contents?: true
Size: 1.24 KB
Versions: 10
Compression:
Stored size: 1.24 KB
Contents
require 'test_helper' module Kaui class NavigationTest < IntegrationTestHelper test 'Browse one account' do get ACCOUNTS_PATH + '/' + @account.account_id assert_redirected_to SIGN_IN_PATH # Verify log-in and redirect to the original page post_via_redirect SIGN_IN_PATH, {:user => {:kb_username => USERNAME, :password => PASSWORD}} assert_equal ACCOUNTS_PATH + '/' + @account.account_id, path # User goes to search for the account get ACCOUNTS_PATH assert_response :success # Assumes he found it on the listing get ACCOUNTS_PATH + '/' + @account.account_id assert_response :success check_no_flash_error assert_not_nil assigns(:tags) assert_not_nil assigns(:account_emails) assert_not_nil assigns(:overdue_state) assert_not_nil assigns(:payment_methods) # He now clicks on the timeline link get ACCOUNTS_PATH + '/' + @account.account_id + '/timeline' assert_response :success check_no_flash_error assert_not_nil assigns(:account) # Verify log-out delete_via_redirect SIGN_OUT_PATH assert_equal SIGN_IN_PATH, path assert_equal 'You need to sign in or sign up before continuing.', flash[:alert] end end end
Version data entries
10 entries across 10 versions & 1 rubygems