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.6.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.6.0 templates/test/controllers/application_controller_test.rb
hephaestus-0.5.2 templates/test/controllers/application_controller_test.rb
hephaestus-0.5.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.5.0 templates/test/controllers/application_controller_test.rb
hephaestus-0.4.0 templates/test/controllers/application_controller_test.rb
hephaestus-0.3.1 templates/test/controllers/application_controller_test.rb
hephaestus-0.2.3 templates/test/controllers/application_controller_test.rb
hephaestus-0.2.2 templates/test/controllers/application_controller_test.rb