spec/unit/action/runner_spec.rb in r10k-3.4.1 vs spec/unit/action/runner_spec.rb in r10k-3.5.0
- old
+ new
@@ -92,11 +92,11 @@
overrides = if conf_path.nil?
override
else
{ "#{conf_path}": override }
end
- expect(global_settings).to receive(:evaluate).with(overrides).and_call_original
+ expect(global_settings).to receive(:evaluate).with(hash_including(overrides)).and_call_original
runner.call
end
end
context "when overridden" do
@@ -107,10 +107,10 @@
overrides = if conf_path.nil?
override
else
{ "#{conf_path}": override }
end
- expect(global_settings).to receive(:evaluate).with(overrides).and_call_original
+ expect(global_settings).to receive(:evaluate).with(hash_including(overrides)).and_call_original
runner.call
end
end
end