mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Use proper wording for contexts in specs
This commit is contained in:

committed by
Loïc Guitaut

parent
02987e05d5
commit
3eaac56797
@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe Onebox::Engine::HackernewsOnebox do
|
||||
context "When oneboxing a comment" do
|
||||
context "when oneboxing a comment" do
|
||||
let(:link) { "https://news.ycombinator.com/item?id=30181167" }
|
||||
let(:api_link) { "https://hacker-news.firebaseio.com/v0/item/30181167.json" }
|
||||
let(:html) { described_class.new(link).to_html }
|
||||
@ -27,7 +27,7 @@ RSpec.describe Onebox::Engine::HackernewsOnebox do
|
||||
end
|
||||
end
|
||||
|
||||
context "When oneboxing a story" do
|
||||
context "when oneboxing a story" do
|
||||
let(:link) { "https://news.ycombinator.com/item?id=5172905" }
|
||||
let(:api_link) { "https://hacker-news.firebaseio.com/v0/item/5172905.json" }
|
||||
let(:html) { described_class.new(link).to_html }
|
||||
|
Reference in New Issue
Block a user