Sha256: fc3adc9d9ac745ee777f35bc1780c388c87aed93be2b921610389c6a9d55cf28
Contents?: true
Size: 1.27 KB
Versions: 13
Compression:
Stored size: 1.27 KB
Contents
# require 'test_helper' # # module Kaui # class TagsControllerTest < ActionController::TestCase # setup do # @tag = tags(:one) # end # # test "should get index" do # get :index # assert_response :success # assert_not_nil assigns(:tags) # end # # test "should get new" do # get :new # assert_response :success # end # # test "should create tag" do # assert_difference('Tag.count') do # post :create, tag: { tagDefinitionId: @tag.tagDefinitionId, tagDefinitionName: @tag.tagDefinitionName } # end # # assert_redirected_to tag_path(assigns(:tag)) # end # # test "should show tag" do # get :show, id: @tag # assert_response :success # end # # test "should get edit" do # get :edit, id: @tag # assert_response :success # end # # test "should update tag" do # put :update, id: @tag, tag: { tagDefinitionId: @tag.tagDefinitionId, tagDefinitionName: @tag.tagDefinitionName } # assert_redirected_to tag_path(assigns(:tag)) # end # # test "should destroy tag" do # assert_difference('Tag.count', -1) do # delete :destroy, id: @tag # end # # assert_redirected_to tags_path # end # end # end
Version data entries
13 entries across 13 versions & 1 rubygems