Commit 0c7f7f53 authored by Terence Lee's avatar Terence Lee

add a test for clean_urls

parent fa886b3c
......@@ -31,4 +31,14 @@ describe "Simple" do
expect(response.body.chomp).to eq("Hello from dist/")
end
end
describe "clean_urls" do
let(:name) { "clean_urls" }
it "should drop the .html extension from URLs" do
response = app.get("/foo")
expect(response.code).to eq("200")
expect(response.body.chomp).to eq("foobar")
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