mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 03:23:38 +08:00
TEST: Adds test for urls with url-encoded section hash
This commit is contained in:
parent
6b8ee4d5ef
commit
745b99edbf
569
spec/fixtures/onebox/wikipedia_url_encoded.response
vendored
Normal file
569
spec/fixtures/onebox/wikipedia_url_encoded.response
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -32,4 +32,17 @@ describe Onebox::Engine::WikipediaOnebox do
|
|||
expect(html).to include("The film score was composed")
|
||||
end
|
||||
end
|
||||
|
||||
context "url with url-encoded section hash" do
|
||||
before do
|
||||
@link = "https://fr.wikipedia.org/wiki/Th%C3%A9ologie#La_th%C3%A9ologie_selon_Aristote"
|
||||
|
||||
stub_request(:get, "https://fr.wikipedia.org/wiki/Th%C3%A9ologie")
|
||||
.to_return(status: 200, body: onebox_response("wikipedia_url_encoded"))
|
||||
end
|
||||
|
||||
it "includes summary" do
|
||||
expect(html).to include("Le terme est repris par")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user