Sha256: fb626edbd4784127e625688084bf210de2b13732867d8f580483fb114ea21e9f

Contents?: true

Size: 1.31 KB

Versions: 24

Compression:

Stored size: 1.31 KB

Contents

require 'test_helper'

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

    setup do
      @partial = keppler_frontend_partials(:one)
    end

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

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

    test "should create partial" do
      assert_difference('Partial.count') do
        post partials_url, params: { partial: { deleted_at: @partial.deleted_at, name: @partial.name, position: @partial.position } }
      end

      assert_redirected_to partial_url(Partial.last)
    end

    test "should show partial" do
      get partial_url(@partial)
      assert_response :success
    end

    test "should get edit" do
      get edit_partial_url(@partial)
      assert_response :success
    end

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

    test "should destroy partial" do
      assert_difference('Partial.count', -1) do
        delete partial_url(@partial)
      end

      assert_redirected_to partials_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/partials_controller_test.rb
keppler-2.1.21 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.20 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.19 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.18 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.17 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.16 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.15 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.14 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.13 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.12 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.11 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.10 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.9 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.8 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.7 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.6 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.5 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.4 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb
keppler-2.1.3 installer/core/rockets/keppler_frontend/test/controllers/keppler_frontend/partials_controller_test.rb