Skip to content

A platform for community discussion. Free, open, simple.

fix failing spec when HUB_BASE_URL is present

Neil Lalonde0724948878e5
diff --git a/spec/components/discourse_hub_spec.rb b/spec/components/discourse_hub_spec.rb
index 31b0c9651ba..d4e6a05a474 100644
--- a/spec/components/discourse_hub_spec.rb
+++ b/spec/components/discourse_hub_spec.rb
@@ -87,7 +87,7 @@ describe DiscourseHub do
end
it 'should log correctly on error' do
- stub_request(:get, (ENV['HUB_BASE_URL'] || "http://local.hub:3000/api/test")).
+ stub_request(:get, (ENV['HUB_BASE_URL'] || "http://local.hub:3000/api") + '/test').
to_return(status: 500, body: "", headers: {})
DiscourseHub.collection_action(:get, '/test')