Sha256: f40c96cdb10c255d091282a32b6df4d58316e2e2f407e0679f92e231c861af57

Contents?: true

Size: 1.29 KB

Versions: 24

Compression:

Stored size: 1.29 KB

Contents

require 'test_helper'

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

    setup do
      @theme = keppler_frontend_themes(:one)
    end

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

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

    test "should create theme" do
      assert_difference('Theme.count') do
        post themes_url, params: { theme: { active: @theme.active, deleted_at: @theme.deleted_at, name: @theme.name, position: @theme.position } }
      end

      assert_redirected_to theme_url(Theme.last)
    end

    test "should show theme" do
      get theme_url(@theme)
      assert_response :success
    end

    test "should get edit" do
      get edit_theme_url(@theme)
      assert_response :success
    end

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

    test "should destroy theme" do
      assert_difference('Theme.count', -1) do
        delete theme_url(@theme)
      end

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