display error when process doesnt exist and is run by name

This commit is contained in:
David Dollar
2011-11-08 11:54:55 -05:00
parent f3c1e76860
commit f6ef5a5b4f
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -48,6 +48,12 @@ describe "Foreman::Engine" do
mock(subject).watch_for_termination
subject.execute("alpha")
end
it "shows an error running a process that doesnt exist" do
write_procfile
mock(subject).puts("ERROR: no such process: foo")
lambda { subject.execute("foo") }.should raise_error(SystemExit)
end
end
describe "environment" do