From 0724948878e5f728150212fb6c96e7241b62d5a8 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 15 Oct 2018 15:06:02 -0400 Subject: [PATCH] fix failing spec when HUB_BASE_URL is present --- spec/components/discourse_hub_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')