mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00:00
TEST: Adds test for urls with section hash
This commit is contained in:
parent
cd9262b7d3
commit
6b8ee4d5ef
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user