FIX: discourse_hub_spec stub_request should include query params

This commit is contained in:
Alberto Aguirre 2017-06-18 14:40:28 -05:00
parent 170a554747
commit b24bdc5b20
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ describe DiscourseHub do
hub_response = {'success' => 'OK', 'latest_version' => '0.8.1', 'critical_updates' => false}
stub_request(:get, (ENV['HUB_BASE_URL'] || "http://local.hub:3000/api") + "/version_check").
with(query: DiscourseHub.version_check_payload).
to_return(status: 200, body: hub_response.to_json)
expect(DiscourseHub.discourse_version_check).to eq(hub_response)