diff --git a/spec/classes/agent_spec.rb b/spec/classes/agent_spec.rb index 8322dd851..de46e046c 100644 --- a/spec/classes/agent_spec.rb +++ b/spec/classes/agent_spec.rb @@ -161,7 +161,7 @@ } end - it { is_expected.to compile.and_raise_error() } + it { is_expected.to compile.and_raise_error(%r{.*}) } end context 'configuration file with hostinterface' do