spec/routing/root_route_spec.rb in wayfarer-0.4.0 vs spec/routing/root_route_spec.rb in wayfarer-0.4.1
- old
+ new
@@ -11,18 +11,18 @@
context "with child routes" do
before { route.host("http://google.com") }
it "returns true" do
%w[http://example.com http://w3c.org http://google.com].each do |url|
- expect(matcher).to match(URI(url))
+ expect(matcher).to match(Addressable::URI.parse(url))
end
end
end
context "without child routes" do
it "returns false" do
%w[http://example.com http://w3c.org http://google.com].each do |url|
- expect(matcher).not_to match(URI(url))
+ expect(matcher).not_to match(Addressable::URI.parse(url))
end
end
end
end
end