add ability to test full comamnd line

This commit is contained in:
David Dollar
2011-10-04 11:30:28 -04:00
parent ba18f7e589
commit 86e4251840
2 changed files with 19 additions and 0 deletions
+9
View File
@@ -26,6 +26,15 @@ describe "Foreman::CLI" do
end
describe "export" do
describe "options" do
it "respects --env" do
write_procfile
write_env("envfile")
mock.instance_of(Foreman::Export::Upstart).export("/upstart", { "env" => "envfile" })
foreman %{ export upstart /upstart --env envfile }
end
end
describe "with a non-existent Procfile" do
it "prints an error" do
mock_error(subject, "Procfile does not exist.") do