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