mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-28 20:32:00 +01:00
Add option -e to set environment
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user