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.7.2 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.7.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.7 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.6 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.5 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.4.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.4 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.3.4 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.3.3 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.3.2 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.3.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.3 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.2 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.8.0 templates/test/controllers/application_controller_test.rb
hephaestus-0.7.7.2 templates/test/controllers/application_controller_test.rb
hephaestus-0.7.7 templates/test/controllers/application_controller_test.rb
hephaestus-0.7.6.2 templates/test/controllers/application_controller_test.rb
hephaestus-0.7.6.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.7.6 templates/test/controllers/application_controller_test.rb