TEST: Adds test for urls with section hash

This commit is contained in:
Chema Balsas 2021-08-11 21:54:42 +01:00 committed by Robin Ward
parent cd9262b7d3
commit 6b8ee4d5ef

View File

@ -22,4 +22,14 @@ describe Onebox::Engine::WikipediaOnebox do
expect(html).to include("Billy Jack is a 1971 action/drama")
end
end
context "url with section hash" do
before do
@link = "http://en.wikipedia.org/wiki/Billy_Jack#Soundtrack"
end
it "includes summary" do
expect(html).to include("The film score was composed")
end
end
end