mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Apply syntax_tree formatting to spec/*
This commit is contained in:
@ -7,11 +7,16 @@ RSpec.describe Onebox::Engine::HackernewsOnebox do
|
||||
let(:html) { described_class.new(link).to_html }
|
||||
|
||||
before do
|
||||
stub_request(:get, api_link).to_return(status: 200, body: onebox_response("hackernews_comment"))
|
||||
stub_request(:get, api_link).to_return(
|
||||
status: 200,
|
||||
body: onebox_response("hackernews_comment"),
|
||||
)
|
||||
end
|
||||
|
||||
it "has the comments first words" do
|
||||
expect(html).to include("Completely, forums are about basic human expression in paragraph form.")
|
||||
expect(html).to include(
|
||||
"Completely, forums are about basic human expression in paragraph form.",
|
||||
)
|
||||
end
|
||||
|
||||
it "has author username" do
|
||||
|
Reference in New Issue
Block a user