Skip to content

Commit

Permalink
Attempt to trick Ruby 3.1
Browse files Browse the repository at this point in the history
The error message seems mangled on GitHub action with some versions of
Ruby.  Not sure about the real root cause, but matching unitf a Regexp
seems to help here.
  • Loading branch information
smortex committed Aug 14, 2024
1 parent ce5cac3 commit 51736ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/mcollective/pluginpackager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module MCollective
it "should do something else" do
expect{
PluginPackager["Bar"]
}.to raise_error(NameError, 'uninitialized constant MCollective::PluginPackager::Bar')
}.to raise_error(NameError, /uninitialized constant MCollective::PluginPackager::Bar/)
end
end

Expand Down

0 comments on commit 51736ee

Please sign in to comment.