You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
475 B

  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