fix supervisord export for environments containing commas

This commit is contained in:
Raphael Randschau
2012-04-20 09:11:25 +02:00
parent 93cdc31be0
commit dbda63263b
3 changed files with 19 additions and 1 deletions
+10
View File
@@ -72,4 +72,14 @@ describe Foreman::Export::Supervisord, :fakefs do
end
end
context "environment export" do
it "returns the original environment if it contains no comma" do
supervisord.wrap_environment("production").should == "production"
end
it "wrapps the original environment with quotes if it contains a comma" do
supervisord.wrap_environment("slowqueue,fastqueue").should == '"slowqueue,fastqueue"'
end
end
end