Add option -e to set environment

This commit is contained in:
Dzmitry Plashchynski
2015-03-04 14:25:17 +02:00
parent 0afdab02ac
commit e96d71552e
5 changed files with 15 additions and 1 deletions

View File

@@ -49,5 +49,10 @@ describe Crono::CLI do
cli.send(:parse_options, ["--daemonize"])
expect(cli.config.daemonize).to be true
end
it "should set environment" do
cli.send(:parse_options, ["--environment", "production"])
expect(cli.config.environment).to be_eql("production")
end
end
end