Skip to content

Commit

Permalink
Update test for missing version configuration in nexus class
Browse files Browse the repository at this point in the history
  • Loading branch information
zipkid committed Dec 6, 2023
1 parent 7a3b99d commit b505974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

it 'fails if no version configured' do
expect { is_expected.to compile }.to raise_error(RSpec::Expectations::ExpectationNotMetError,
%r{expects a value for parameter 'version'})
%r{nexus::version must be set when using package_type => src})
end
end

Expand All @@ -25,7 +25,7 @@

it 'fails if no version configured' do
expect { is_expected.to compile }.to raise_error(RSpec::Expectations::ExpectationNotMetError,
%r{parameter 'version' expects a match for Pattern})
%r{parameter 'version' expects an undef value or a match for Pattern})
end
end

Expand Down

0 comments on commit b505974

Please sign in to comment.