diff --git a/spec/foreman/cli_spec.rb b/spec/foreman/cli_spec.rb index 717ab52..7e5c410 100644 --- a/spec/foreman/cli_spec.rb +++ b/spec/foreman/cli_spec.rb @@ -44,6 +44,13 @@ describe "Foreman::CLI", :fakefs do output.should =~ /test.1 \| testing/ end end + + it "sets PS variable with the process name" do + without_fakefs do + output = foreman("start -f #{resource_path("Procfile")}") + output.should =~ /ps.1 \| PS env var is ps.1/ + end + end end end diff --git a/spec/resources/Procfile b/spec/resources/Procfile index f4bcb95..8c7a324 100644 --- a/spec/resources/Procfile +++ b/spec/resources/Procfile @@ -2,3 +2,4 @@ echo: bin/echo echoing env: bin/env FOO test: bin/test utf8: bin/utf8 +ps: bin/echo PS env var is $PS