Add rubocop to our build. (#5004)

This commit is contained in:
Guo Xiang Tan
2017-07-28 10:20:09 +09:00
committed by GitHub
parent ff4e295c4f
commit 5012d46cbd
871 changed files with 5480 additions and 6056 deletions

View File

@ -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).