Sha256: ff421725a67c22d15ba2552d4dc9115b6205fa4d622b2e279baf40a5e169e2c2

Contents?: true

Size: 1.71 KB

Versions: 24

Compression:

Stored size: 1.71 KB

Contents

require 'test_helper'

module KepplerFrontend
  class CallbackFunctionsControllerTest < ActionDispatch::IntegrationTest
    include Engine.routes.url_helpers

    setup do
      @callback_function = keppler_frontend_callback_functions(:one)
    end

    test "should get index" do
      get callback_functions_url
      assert_response :success
    end

    test "should get new" do
      get new_callback_function_url
      assert_response :success
    end

    test "should create callback_function" do
      assert_difference('CallbackFunction.count') do
        post callback_functions_url, params: { callback_function: { deleted_at: @callback_function.deleted_at, description: @callback_function.description, name: @callback_function.name, position: @callback_function.position } }
      end

      assert_redirected_to callback_function_url(CallbackFunction.last)
    end

    test "should show callback_function" do
      get callback_function_url(@callback_function)
      assert_response :success
    end

    test "should get edit" do
      get edit_callback_function_url(@callback_function)
      assert_response :success
    end

    test "should update callback_function" do
      patch callback_function_url(@callback_function), params: { callback_function: { deleted_at: @callback_function.deleted_at, description: @callback_function.description, name: @callback_function.name, position: @callback_function.position } }
      assert_redirected_to callback_function_url(@callback_function)
    end

    test "should destroy callback_function" do
      assert_difference('CallbackFunction.count', -1) do
        delete callback_function_url(@callback_function)
      end

      assert_redirected_to callback_functions_url
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.21 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.20 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.19 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.18 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.17 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.16 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.15 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.14 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.13 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.12 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.11 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.10 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.9 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.8 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.7 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.6 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.5 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.4 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb
keppler-2.1.3 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/callback_functions_controller_test.rb