mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-27 01:05:21 +08:00
Update formating according to Hound
This commit is contained in:
parent
1c08aa6a8b
commit
7a320ae031
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue