spec/lib/minimart/cli_spec.rb in minimart-1.1.6 vs spec/lib/minimart/cli_spec.rb in minimart-1.2.0
- old
+ new
@@ -67,20 +67,22 @@
it 'should call the web command with the proper arguments' do
expect(Minimart::Commands::Web).to receive(:new).with(
'web_directory' => './web',
'inventory_directory' => './inventory',
'host' => 'http://example.com',
- 'html' => true).and_return command_double
+ 'html' => true,
+ 'clean_cookbooks' => true).and_return command_double
Minimart::Cli.start %w[web --host=http://example.com]
end
it 'should allow users to override defaults' do
expect(Minimart::Commands::Web).to receive(:new).with(
'web_directory' => './my-web',
'inventory_directory' => './my-inventory',
'host' => 'http://example.com',
- 'html' => false).and_return command_double
+ 'html' => false,
+ 'clean_cookbooks' => true).and_return command_double
Minimart::Cli.start %w[
web
--host=http://example.com
--web-directory=./my-web