Commit fa886b3c authored by Terence Lee's avatar Terence Lee

root test

parent f94be932
...@@ -7,15 +7,28 @@ describe "Simple" do ...@@ -7,15 +7,28 @@ describe "Simple" do
@debug = false @debug = false
BuildpackBuilder.new(@debug) BuildpackBuilder.new(@debug)
end end
let(:app) { AppRunner.new("hello_world", @debug) }
after do after do
app.destroy app.destroy
end end
let(:app) { AppRunner.new(name, @debug) }
let(:name) { "hello_world" }
it "should serve out of public_html by default" do it "should serve out of public_html by default" do
response = app.get("/") response = app.get("/")
expect(response.code).to eq("200") expect(response.code).to eq("200")
expect(response.body.chomp).to eq("Hello World") expect(response.body.chomp).to eq("Hello World")
end end
describe "root" do
let(:name) { "different_root" }
it "should serve assets out of user defined root" do
response = app.get("/")
expect(response.code).to eq("200")
expect(response.body.chomp).to eq("Hello from dist/")
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