spec/lib/minimart/commands/web_spec.rb in minimart-1.1.6 vs spec/lib/minimart/commands/web_spec.rb in minimart-1.2.0
- old
+ new
@@ -42,18 +42,20 @@
it 'should generate the universe.json file' do
expect(Minimart::Web::UniverseGenerator).to receive(:new).with(
web_directory: subject.web_directory,
endpoint: subject.web_endpoint,
+ clean_cookbooks: true,
cookbooks: an_instance_of(Minimart::Web::Cookbooks)).and_return generator_double
subject.execute!
end
it 'should generate the static HTML files' do
expect(Minimart::Web::HtmlGenerator).to receive(:new).with(
web_directory: subject.web_directory,
- cookbooks: an_instance_of(Minimart::Web::Cookbooks)).and_return generator_double
+ cookbooks: an_instance_of(Minimart::Web::Cookbooks),
+ clean_cookbooks: true).and_return generator_double
subject.execute!
end
context 'when the user disable html generation' do