spec/foreman/cli_spec.rb in foreman-0.78.0 vs spec/foreman/cli_spec.rb in foreman-0.80.0

- old
+ new

@@ -49,10 +49,15 @@ without_fakefs do output = foreman("start -f #{resource_path("Procfile")}") expect(output).to match(/ps.1 \| PS env var is ps.1/) end end + + it "fails if process fails" do + output = `bundle exec foreman start -f #{resource_path "Procfile.bad"} && echo success` + expect(output).not_to include 'success' + end end end describe "check" do it "with a valid Procfile displays the jobs" do @@ -64,10 +69,9 @@ FileUtils.touch "Procfile" expect(foreman("check")).to eq("ERROR: no processes defined\n") end it "without a Procfile displays an error" do - FileUtils.rm_f "Procfile" expect(foreman("check")).to eq("ERROR: Procfile does not exist.\n") end end describe "run" do