From ce79bc63ae6991b5b791b6dea32c25acc42648a0 Mon Sep 17 00:00:00 2001 From: gimmy Date: Fri, 4 Oct 2019 14:41:34 +0300 Subject: [PATCH] (maint) fix failing tests due to rspec changes This test was failing due to some changes on rspec-expectactions gems. More info here: https://github.com/rspec/rspec-expectations/issues/1134 --- spec/classes/puppet_agent_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/classes/puppet_agent_spec.rb b/spec/classes/puppet_agent_spec.rb index b3bb8bd82..ab054f31e 100644 --- a/spec/classes/puppet_agent_spec.rb +++ b/spec/classes/puppet_agent_spec.rb @@ -298,7 +298,7 @@ def global_facts(facts, os) end let(:params) { global_params } - it { is_expected.to raise_error(Puppet::Error, %r{Nexenta not supported}) } + it { expect { catalogue }.to raise_error(Puppet::Error, %r{Nexenta not supported}) } end end end