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

Version Path
kaui-0.11.0 test/functional/kaui/account_tags_controller_test.rb
kaui-0.10.0 test/functional/kaui/account_tags_controller_test.rb
kaui-0.9.0 test/functional/kaui/account_tags_controller_test.rb
kaui-0.8.4 test/functional/kaui/account_tags_controller_test.rb
kaui-0.8.3 test/functional/kaui/account_tags_controller_test.rb
kaui-0.8.2 test/functional/kaui/account_tags_controller_test.rb
kaui-0.8.1 test/functional/kaui/account_tags_controller_test.rb
kaui-0.8.0 test/functional/kaui/account_tags_controller_test.rb
kaui-0.7.2 test/functional/kaui/account_tags_controller_test.rb
kaui-0.7.1 test/functional/kaui/account_tags_controller_test.rb
kaui-0.7.0 test/functional/kaui/account_tags_controller_test.rb