Change API ping/pong to return a boolean

This commit is contained in:
Thibault Jouan 2015-05-05 00:03:57 +00:00
parent 61d1548b59
commit 7b44e90814
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ module API
end
def ping
render json: { pong: 'ok' }
render json: { pong: true }
end
def authenticate!

View File

@ -3,7 +3,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: true)
end
end