spec/foreman/cli_spec.rb in foreman-0.59.0 vs spec/foreman/cli_spec.rb in foreman-0.60.0
- old
+ new
@@ -71,9 +71,13 @@
it "includes the environment" do
forked_foreman("run #{resource_path("bin/env FOO")} -e #{resource_path(".env")}").should == "bar\n"
end
+ it "can run a command from the Procfile" do
+ forked_foreman("run -f #{resource_path("Procfile")} test").should == "testing\n"
+ end
+
it "exits with the same exit code as the command" do
fork_and_get_exitstatus("run echo 1").should == 0
fork_and_get_exitstatus("run date 'invalid_date'").should == 1
end
end