From 7a320ae031bda7dd886770eceb99934b1e07f2ae Mon Sep 17 00:00:00 2001 From: Jure Grabnar Date: Mon, 12 Nov 2018 17:51:23 +0100 Subject: [PATCH] Update formating according to Hound --- spec/controllers/api/api_controller_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/controllers/api/api_controller_spec.rb b/spec/controllers/api/api_controller_spec.rb index 1bf4d1f37..ea9bf1707 100644 --- a/spec/controllers/api/api_controller_spec.rb +++ b/spec/controllers/api/api_controller_spec.rb @@ -13,14 +13,14 @@ describe Api::ApiController, type: :controller do it 'Response with correct JSON status structure' do hash_body = nil - expect{hash_body = json}.not_to raise_exception - expect(hash_body).to include(:message => I18n.t('api.core.status_ok')) + expect { hash_body = json }.not_to raise_exception + expect(hash_body).to include(message: I18n.t('api.core.status_ok')) expect(hash_body).to include('versions') - Extends::API_VERSIONS.each_with_index do |ver, index| + Extends::API_VERSIONS.each do |ver| expect(hash_body['versions']).to include( - { 'version' => ver, - 'baseUrl' => "/api/#{ver}/" } + 'version' => ver, + 'baseUrl' => "/api/#{ver}/" ) end end