Sha256: 5ddecd2f909f45dc20544455a4cfacbcefbd802d16f14590f018399f7a2e0d5d

Contents?: true

Size: 870 Bytes

Versions: 12

Compression:

Stored size: 870 Bytes

Contents

require 'test_helper'

class Kaui::TagDefinitionsControllerTest < Kaui::FunctionalTestHelper

  test 'should list tag definitions' do
    get :index
    assert_response 200
  end

  test 'should add and destroy tag definition' do
    get :new
    assert_response 200
    assert_not_nil assigns(:tag_definition)

    tag_definition = SecureRandom.uuid[0..5]
    post :create,
         :tag_definition => {
             :name        => tag_definition,
             :description => SecureRandom.uuid,
             :applicable_object_types => {"0" => "ACCOUNT"}
         }
    assert_redirected_to tag_definitions_path
    assert_equal 'Tag definition successfully created', flash[:notice]

    delete :destroy, :id => assigns(:tag_definition).id
    assert_redirected_to tag_definitions_path
    assert_equal 'Tag definition successfully deleted', flash[:notice]
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kaui-2.1.0 test/functional/kaui/tag_definitions_controller_test.rb
kaui-2.0.4 test/functional/kaui/tag_definitions_controller_test.rb
kaui-2.0.3 test/functional/kaui/tag_definitions_controller_test.rb
kaui-2.0.2 test/functional/kaui/tag_definitions_controller_test.rb
kaui-2.0.1 test/functional/kaui/tag_definitions_controller_test.rb
kaui-2.0.0 test/functional/kaui/tag_definitions_controller_test.rb
kaui-1.4.1 test/functional/kaui/tag_definitions_controller_test.rb
kaui-1.4.0 test/functional/kaui/tag_definitions_controller_test.rb
kaui-1.3.0 test/functional/kaui/tag_definitions_controller_test.rb
kaui-1.2.0 test/functional/kaui/tag_definitions_controller_test.rb
kaui-1.1.0 test/functional/kaui/tag_definitions_controller_test.rb
kaui-1.0.0 test/functional/kaui/tag_definitions_controller_test.rb