Commit 788cfd7b authored by Molly Waggett's avatar Molly Waggett Committed by GitHub

Merge pull request #2032 from wkalt/ticket/stable/pdb-2952-spec-tests-fail-on-ruby-2.2

(PDB-2952) fix failing spec tests for ruby 2.2
parents de0e7377 0ef200a4
......@@ -191,34 +191,34 @@ CONF
it "should fail if given an invalid hostname" do
write_config <<CONF
[main]
server_urls = https://invalid_host_name.com
server_urls = https://invalid#host#name.com
CONF
expect do
config = described_class.load
end.to raise_error(/Error parsing URL 'https:\/\/invalid_host_name.com' in PuppetDB 'server_urls'/)
end.to raise_error(/Error parsing URL 'https:\/\/invalid#host#name.com' in PuppetDB 'server_urls'/)
end
it "should fail if given an unparsable second URI" do
write_config <<CONF
[main]
server_urls = https://foo.com,https://invalid_host_name.com
server_urls = https://foo.com,https://invalid#host#name.com
CONF
expect do
config = described_class.load
end.to raise_error(/Error parsing URL 'https:\/\/invalid_host_name.com' in PuppetDB 'server_urls'/)
end.to raise_error(/Error parsing URL 'https:\/\/invalid#host#name.com' in PuppetDB 'server_urls'/)
end
it "should fail if given an unparsable second URI" do
write_config <<CONF
[main]
server_urls = https://foo.com,https://invalid_host_name.com
server_urls = https://foo.com,https://invalid#host#name.com
CONF
expect do
config = described_class.load
end.to raise_error(/Error parsing URL 'https:\/\/invalid_host_name.com' in PuppetDB 'server_urls'/)
end.to raise_error(/Error parsing URL 'https:\/\/invalid#host#name.com' in PuppetDB 'server_urls'/)
end
it "should tolerate spaces between URLs" do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment