spec/support/kitchen.rb in berkshelf-3.1.5 vs spec/support/kitchen.rb in berkshelf-3.2.0

- old
+ new

@@ -3,10 +3,12 @@ module Kitchen require 'kitchen/generator/init' def stub_kitchen! generator = double('kitchen-generator', invoke_all: nil) - ::Kitchen::Generator::Init.stub(:new).with(any_args()).and_return(generator) + allow(::Kitchen::Generator::Init).to receive(:new) + .with(any_args()) + .and_return(generator) end end end end