Actually test that the environment is set correctly

This commit is contained in:
Thom May
2011-09-06 15:59:26 +01:00
parent 7fc6d02e7b
commit 8fd9b753f4
+2
View File
@@ -75,6 +75,7 @@ describe "Foreman::Engine" do
engine = Foreman::Engine.new("Procfile", :env => "/tmp/env")
stub(engine).info
mock(engine).watch_for_termination
engine.environment.should == {"FOO"=>"baz"}
engine.execute("alpha")
end
@@ -89,6 +90,7 @@ describe "Foreman::Engine" do
stub(engine).info
mock(engine).watch_for_termination
mock(engine).fork_individual(anything, anything, anything)
engine.environment.should == {"FOO"=>"qoo"}
engine.execute("bravo")
end
end