Sha256: 3c76ea854271afbdc28948ca5d159e31f92483c39dfaf5fe22c2bf52d2bd3a40
Contents?: true
Size: 1001 Bytes
Versions: 11
Compression:
Stored size: 1001 Bytes
Contents
require 'test_helper' class Kaui::AccountTagsControllerTest < Kaui::FunctionalTestHelper test 'should show tags' do get :show, :account_id => @account.account_id assert_response 200 assert_not_nil assigns(:account) assert_not_nil assigns(:tags) end test 'should get edit' do get :edit, :account_id => @account.account_id assert_response 200 assert_not_nil assigns(:account) assert_not_nil assigns(:tag_names) assert_not_nil assigns(:available_tags) end test 'should update tags' do post :update, :account_id => @account.account_id, 'tag_00000000-0000-0000-0000-000000000001' => 'AUTO_PAY_OFF', 'tag_00000000-0000-0000-0000-000000000005' => 'MANUAL_PAY', 'tag_00000000-0000-0000-0000-000000000003' => 'OVERDUE_ENFORCEMENT_OFF' assert_redirected_to account_tags_path(:account_id => @account.account_id) assert_equal 'Account tags successfully set', flash[:notice] end end
Version data entries
11 entries across 11 versions & 1 rubygems