Sha256: 6869a3db16b35560bb3204616ddfbf082da9e6c0543ba01b13f8a8d6bdee5a17

Contents?: true

Size: 985 Bytes

Versions: 11

Compression:

Stored size: 985 Bytes

Contents

require 'test_helper'

class Kaui::BundleTagsControllerTest < Kaui::FunctionalTestHelper

  test 'should show tags' do
    get :show, :bundle_id => @bundle.bundle_id
    assert_response 200
    assert_not_nil assigns(:bundle)
    assert_not_nil assigns(:tags)
  end

  test 'should get edit' do
    get :edit, :bundle_id => @bundle.bundle_id
    assert_response 200
    assert_not_nil assigns(:bundle)
    assert_not_nil assigns(:tag_names)
    assert_not_nil assigns(:available_tags)
  end

  test 'should update tags' do
    post :update,
         :bundle_id                                 => @bundle.bundle_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 bundle_tags_path(:bundle_id => @bundle.bundle_id)
    assert_equal 'Bundle 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/bundle_tags_controller_test.rb
kaui-0.10.0 test/functional/kaui/bundle_tags_controller_test.rb
kaui-0.9.0 test/functional/kaui/bundle_tags_controller_test.rb
kaui-0.8.4 test/functional/kaui/bundle_tags_controller_test.rb
kaui-0.8.3 test/functional/kaui/bundle_tags_controller_test.rb
kaui-0.8.2 test/functional/kaui/bundle_tags_controller_test.rb
kaui-0.8.1 test/functional/kaui/bundle_tags_controller_test.rb
kaui-0.8.0 test/functional/kaui/bundle_tags_controller_test.rb
kaui-0.7.2 test/functional/kaui/bundle_tags_controller_test.rb
kaui-0.7.1 test/functional/kaui/bundle_tags_controller_test.rb
kaui-0.7.0 test/functional/kaui/bundle_tags_controller_test.rb