Sha256: dc338cfef86dfe10f4f342b38f9e057b2e0b8aa8e27b0a341e6f4549c784c4db

Contents?: true

Size: 1.34 KB

Versions: 24

Compression:

Stored size: 1.34 KB

Contents

require 'test_helper'

module KepplerLanguages
  class LanguagesControllerTest < ActionDispatch::IntegrationTest
    include Engine.routes.url_helpers

    setup do
      @language = keppler_languages_languages(:one)
    end

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

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

    test "should create language" do
      assert_difference('Language.count') do
        post languages_url, params: { language: { deleted_at: @language.deleted_at, name: @language.name, position: @language.position } }
      end

      assert_redirected_to language_url(Language.last)
    end

    test "should show language" do
      get language_url(@language)
      assert_response :success
    end

    test "should get edit" do
      get edit_language_url(@language)
      assert_response :success
    end

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

    test "should destroy language" do
      assert_difference('Language.count', -1) do
        delete language_url(@language)
      end

      assert_redirected_to languages_url
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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