mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
fix failing spec when HUB_BASE_URL is present
This commit is contained in:
parent
d166c38ab7
commit
0724948878
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue