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