fix failing spec when HUB_BASE_URL is present

This commit is contained in:
Neil Lalonde 2018-10-15 15:06:02 -04:00
parent d166c38ab7
commit 0724948878

View File

@ -87,7 +87,7 @@ describe DiscourseHub do
end end
it 'should log correctly on error' do 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: {}) to_return(status: 500, body: "", headers: {})
DiscourseHub.collection_action(:get, '/test') DiscourseHub.collection_action(:get, '/test')