mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Add rubocop to our build. (#5004)
This commit is contained in:
@ -4,7 +4,7 @@ require_dependency 'discourse_hub'
|
||||
describe DiscourseHub do
|
||||
describe '.discourse_version_check' 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}
|
||||
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).
|
||||
|
Reference in New Issue
Block a user