Skip to content

Commit

Permalink
Add space to URI error
Browse files Browse the repository at this point in the history
The URI gem recently updated its error messages to include a space where
there previously was not one: ruby/uri@9f2c7ed

This commit updates our test to reflect that change.
  • Loading branch information
mhashizume committed Nov 25, 2024
1 parent 4ea6ee2 commit c3a5090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/provider/package/puppetserver_gem_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

it "raises if given an invalid URI" do
resource[:source] = 'h;ttp://rubygems.com'
expect { provider.install }.to raise_error(Puppet::Error, /Invalid source '': bad URI\(is not URI\?\)/)
expect { provider.install }.to raise_error(Puppet::Error, /Invalid source '': bad URI \(is not URI\?\)/)
end
end
end
Expand Down

0 comments on commit c3a5090

Please sign in to comment.