Sha256: 22cbeb0269b067a7fa98b81815d83da85ebc022db2377d60bdb47c18f81cf01f
Contents?: true
Size: 809 Bytes
Versions: 13
Compression:
Stored size: 809 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 } 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
13 entries across 13 versions & 1 rubygems