Commit 69b59258 authored by Terence Lee's avatar Terence Lee

custom error page test

parent e23229e4
...@@ -69,4 +69,14 @@ RSpec.describe "Simple" do ...@@ -69,4 +69,14 @@ RSpec.describe "Simple" do
expect(response["location"]).to eq("http://#{AppRunner::HOST_IP}:#{AppRunner::HOST_PORT}/") expect(response["location"]).to eq("http://#{AppRunner::HOST_IP}:#{AppRunner::HOST_PORT}/")
end end
end end
describe "custom error pages" do
let(:name) { "custom_error_pages" }
it "should render the error page for a 404" do
response = app.get("/ewat")
expect(response.code).to eq("404")
expect(response.body.chomp).to eq("not found")
end
end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment