Skip to content

Commit

Permalink
Update multi-buildpack test to use current branch of the buildpack
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Mar 17, 2020
1 parent 778e3fa commit 992c2dc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion spec/hatchet/node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

describe "Node" do
it "works with node buildpack" do
Hatchet::Runner.new("node_multi", buildpack_url: "https://github.com/heroku/heroku-buildpack-multi.git").deploy do |app|
before_deploy = Proc.new do
run!("rm .buildpacks")
run!("echo https://github.com/heroku/heroku-buildpack-nodejs.git >> .buildpacks")
run!("echo #{Hatchet::App.default_buildpack} >> .buildpacks")
end

Hatchet::Runner.new(
"node_multi",
before_deploy: before_deploy,
buildpack_url: "https://github.com/heroku/heroku-buildpack-multi.git"
).deploy do |app|
expect(app.output).to match("Node Version in Ruby buildpack is: v4.1.2")
expect(app.run("node -v")).to match("v4.1.2")
end
Expand Down

0 comments on commit 992c2dc

Please sign in to comment.