spec/spec_helper.rb in berkshelf-3.0.0.beta7 vs spec/spec_helper.rb in berkshelf-3.0.0.beta8

- old
+ new

@@ -26,19 +26,18 @@ config.mock_with :rspec config.treat_symbols_as_metadata_keys_with_true_values = true config.filter_run focus: true config.run_all_when_everything_filtered = true - config.before(:suite) do - WebMock.disable_net_connect!(allow_localhost: true, net_http_connect_on_start: true) - Berkshelf::RSpec::ChefServer.start - Berkshelf::API::RSpec::Server.start unless windows? + config.before(:each) do Berkshelf.set_format(:null) Berkshelf.ui.mute! end - config.after(:suite) do - Berkshelf.ui.unmute! + config.before(:suite) do + WebMock.disable_net_connect!(allow_localhost: true, net_http_connect_on_start: true) + Berkshelf::RSpec::ChefServer.start + Berkshelf::API::RSpec::Server.start unless windows? end config.before(:all) do ENV['BERKSHELF_PATH'] = berkshelf_path.to_s end