Commit 375e679c authored by Terence Lee's avatar Terence Lee

decrease container spin to once per test

parent 42aa1095
...@@ -49,15 +49,17 @@ RSpec.describe "Simple" do ...@@ -49,15 +49,17 @@ RSpec.describe "Simple" do
let(:name) { "clean_urls" } let(:name) { "clean_urls" }
it "should drop the .html extension from URLs" do it "should drop the .html extension from URLs" do
response = app.get("/foo") app.run do
expect(response.code).to eq("200") response = app.get("/foo")
expect(response.body.chomp).to eq("foobar") expect(response.code).to eq("200")
expect(response.body.chomp).to eq("foobar")
response = app.get("/bar") response = app.get("/bar")
expect(response.code).to eq("301") expect(response.code).to eq("301")
response = app.get(response["Location"]) response = app.get(response["Location"])
expect(response.code).to eq("200") expect(response.code).to eq("200")
expect(response.body.chomp).to eq("bar") expect(response.body.chomp).to eq("bar")
end
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