spec/lib/roadie/url_generator_spec.rb in roadie-3.0.4 vs spec/lib/roadie/url_generator_spec.rb in roadie-3.0.5

- old
+ new

@@ -58,9 +58,13 @@ it "returns the original URL if it is absolute" do expect(url("http://foo.com/", host: "bar.com")).to eq("http://foo.com/") end + it "returns the original URL if it is just an anchor" do + expect(url("#top", host: "bar.com")).to eq("#top") + end + it "returns the base URL for blank paths" do expect(url("", host: "foo.com")).to eq("http://foo.com") expect(url(nil, host: "foo.com")).to eq("http://foo.com") end