diff --git a/spec/defines/manifest_shared_examples.rb b/spec/defines/manifest_shared_examples.rb index 1bc6fb5d..33762698 100644 --- a/spec/defines/manifest_shared_examples.rb +++ b/spec/defines/manifest_shared_examples.rb @@ -59,7 +59,7 @@ def convert_to_regexp(str) shared_examples 'validation error' do it { params.merge!(additional_params) - expect { should compile }.to raise_error(error_class, convert_to_regexp(raise_error_check)) + expect { catalogue }.to raise_error(error_class, convert_to_regexp(raise_error_check)) } end end