Refactor JSON responses expectations in API specs
This commit is contained in:
@@ -7,7 +7,7 @@ describe 'API application' do
|
||||
before { get api_ping_path, format: :json }
|
||||
|
||||
it 'responds with a pong' do
|
||||
expect(json).to eq({ pong: 'ok' })
|
||||
expect(json).to eq(pong: 'ok')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user