Sha256: ce2f44970890c9143da7ff4c6220e012379dbb9a759fc63258d14fcfd4e63d33

Contents?: true

Size: 642 Bytes

Versions: 69

Compression:

Stored size: 642 Bytes

Contents

# typed: false
# frozen_string_literal: true

require "test_helper"

class ApplicationControllerTest < ActionDispatch::IntegrationTest
  test "renders a 404" do
    get "/asdasdasdasd"

    assert_response :not_found
    assert_match(/Not Found/, response.body)
  end

  test "bogus js does not 500" do
    get "/js/admin.js"

    assert_response :not_found
    assert_match(/Not Found/, response.body)
  end

  test "bogus routes do not 500" do
    post "/"

    assert_response :not_found
    assert_match(/Not Found/, response.body)

    put "/asdads"

    assert_response :not_found
    assert_match(/Not Found/, response.body)
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
hephaestus-0.8.15.5 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.15.4 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.15.3 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.15.2 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.15.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.15 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.14 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.13 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.12.2 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.12.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.12 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.11 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.10 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.9.2 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.9.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.9 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.8 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.7.5 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.7.4 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.7.3 templates/test/controllers/application_controller_test.rb