From cf25ace0e09675e744603962e12451943ce979be Mon Sep 17 00:00:00 2001 From: Stella Yang <43301578+lilacstella@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:26:33 -0700 Subject: [PATCH] add a test to check that this runs on heroku-24 (#1468) expect new line at the end of the `which` command output by stripping it to satisfy the test using the getting started fixture as expected by the current spec file Co-authored-by: Richard Schneeman --- spec/hatchet/getting_started_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/hatchet/getting_started_spec.rb b/spec/hatchet/getting_started_spec.rb index 7a732d61a..f31bad042 100644 --- a/spec/hatchet/getting_started_spec.rb +++ b/spec/hatchet/getting_started_spec.rb @@ -6,4 +6,10 @@ expect(app.run("ls tmp/cache/assets")).to_not match("sprockets") end end + + it "works on Heroku-24" do + Hatchet::Runner.new("ruby-getting-started", stack: "heroku-24").deploy do |app| + expect(app.run("which ruby").strip).to eq("/app/bin/ruby") + end + end end