From 2b7c677a8c1444b1313c88cb0200feb37a62b86d Mon Sep 17 00:00:00 2001 From: Richard Date: Mon, 15 May 2023 07:17:54 +0000 Subject: [PATCH] Fix tests --- spec/lib/onebox/engine/twitch_clips_onebox_spec.rb | 2 +- spec/lib/onebox/engine/twitch_stream_onebox_spec.rb | 2 +- spec/lib/onebox/engine/twitch_video_onebox_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/lib/onebox/engine/twitch_clips_onebox_spec.rb b/spec/lib/onebox/engine/twitch_clips_onebox_spec.rb index 0c799a2983b..a0c620013b2 100644 --- a/spec/lib/onebox/engine/twitch_clips_onebox_spec.rb +++ b/spec/lib/onebox/engine/twitch_clips_onebox_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true RSpec.describe Onebox::Engine::TwitchClipsOnebox do - let(:hostname) { "www.example.com" } + let(:hostname) { Discourse.current_hostname } let(:options) { { hostname: hostname } } it "has the iframe with the correct channel" do diff --git a/spec/lib/onebox/engine/twitch_stream_onebox_spec.rb b/spec/lib/onebox/engine/twitch_stream_onebox_spec.rb index f8485f5b271..0015fd7b535 100644 --- a/spec/lib/onebox/engine/twitch_stream_onebox_spec.rb +++ b/spec/lib/onebox/engine/twitch_stream_onebox_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true RSpec.describe Onebox::Engine::TwitchStreamOnebox do - let(:hostname) { "www.example.com" } + let(:hostname) { Discourse.current_hostname } let(:options) { { hostname: hostname } } it "has the iframe with the correct channel" do diff --git a/spec/lib/onebox/engine/twitch_video_onebox_spec.rb b/spec/lib/onebox/engine/twitch_video_onebox_spec.rb index fd6ddd41902..b9e3d168a0a 100644 --- a/spec/lib/onebox/engine/twitch_video_onebox_spec.rb +++ b/spec/lib/onebox/engine/twitch_video_onebox_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true RSpec.describe Onebox::Engine::TwitchVideoOnebox do - let(:hostname) { "www.example.com" } + let(:hostname) { Discourse.current_hostname } let(:options) { { hostname: hostname } } it "has the iframe with the correct channel" do