Skip to content

Commit

Permalink
rewrite check to use native rspec syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Apr 9, 2024
1 parent 400b863 commit 3670eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/classes/augeasproviders_instances_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
context "when resource_defaults => 'foo'" do
let(:params) { { resource_defaults: 'foo' } }

it { expect { is_expected.to create_class('augeasproviders::instances') }.to raise_error(Puppet::Error, %r{expects a Hash value, got String}) }
it { is_expected.to compile.and_raise_error(%r{expects a Hash value, got String}) }
end

%w[
Expand Down

0 comments on commit 3670eca

Please sign in to comment.