spec/spec_helper.rb in cany-0.5.3 vs spec/spec_helper.rb in cany-0.5.4
- old
+ new
@@ -53,10 +53,10 @@
c.syntax = :expect
end
config.before(:each) do
@executed_programs = []
- allow_any_instance_of(Cany::Recipe).to receive(:exec) { |*args| @executed_programs << args.flatten }
+ allow_any_instance_of(Cany::Recipe).to receive(:exec) { |instance, *args| @executed_programs << args.flatten }
end
config.after(:each) do
Cany::Recipes::Bundler::Gem.clear
load 'cany/recipes/bundler/gem_db.rb'