catch_all_route_request_spec.rb 475 B

123456789101112131415161718192021
  1. require "rails_helper"
  2. describe "The catch all route" do
  3. describe "with a simple value" do
  4. it "returns a 404 page as html" do
  5. get "/test"
  6. expect(response.status).to eq 404
  7. expect(response.content_type).to eq "text/html"
  8. end
  9. end
  10. describe "with an implied format" do
  11. it "returns a 404 page as html" do
  12. get "/test.test"
  13. expect(response.status).to eq 404
  14. expect(response.content_type).to eq "text/html"
  15. end
  16. end
  17. end