Fix tests

This commit is contained in:
Richard 2023-05-15 07:17:54 +00:00 committed by Loïc Guitaut
parent 22ef6a7c29
commit 2b7c677a8c
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
RSpec.describe Onebox::Engine::TwitchClipsOnebox do RSpec.describe Onebox::Engine::TwitchClipsOnebox do
let(:hostname) { "www.example.com" } let(:hostname) { Discourse.current_hostname }
let(:options) { { hostname: hostname } } let(:options) { { hostname: hostname } }
it "has the iframe with the correct channel" do it "has the iframe with the correct channel" do

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
RSpec.describe Onebox::Engine::TwitchStreamOnebox do RSpec.describe Onebox::Engine::TwitchStreamOnebox do
let(:hostname) { "www.example.com" } let(:hostname) { Discourse.current_hostname }
let(:options) { { hostname: hostname } } let(:options) { { hostname: hostname } }
it "has the iframe with the correct channel" do it "has the iframe with the correct channel" do

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true # frozen_string_literal: true
RSpec.describe Onebox::Engine::TwitchVideoOnebox do RSpec.describe Onebox::Engine::TwitchVideoOnebox do
let(:hostname) { "www.example.com" } let(:hostname) { Discourse.current_hostname }
let(:options) { { hostname: hostname } } let(:options) { { hostname: hostname } }
it "has the iframe with the correct channel" do it "has the iframe with the correct channel" do