From c5f42f0e97b27bacd24d07c3180f9b485880e2fc Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 16 Jun 2017 15:31:13 -0400 Subject: [PATCH] fix discourse_hub_spec --- 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 8999d264be1..22d9bfa5d25 100644 --- a/spec/components/discourse_hub_spec.rb +++ b/spec/components/discourse_hub_spec.rb @@ -6,7 +6,7 @@ describe DiscourseHub do it 'should return just return the json that the hub returns' do hub_response = {'success' => 'OK', 'latest_version' => '0.8.1', 'critical_updates' => false} - stub_request(:get, "http://local.hub:3000/api/version_check"). + stub_request(:get, (ENV['HUB_BASE_URL'] || "http://local.hub:3000/api") + "/version_check"). to_return(status: 200, body: hub_response.to_json) expect(DiscourseHub.discourse_version_check).to eq(hub_response)