Change API ping/pong to return a boolean
This commit is contained in:
@@ -29,7 +29,7 @@ module API
|
|||||||
end
|
end
|
||||||
|
|
||||||
def ping
|
def ping
|
||||||
render json: { pong: 'ok' }
|
render json: { pong: true }
|
||||||
end
|
end
|
||||||
|
|
||||||
def authenticate!
|
def authenticate!
|
||||||
|
@@ -3,7 +3,7 @@ describe 'API application' do
|
|||||||
before { get api_ping_path, format: :json }
|
before { get api_ping_path, format: :json }
|
||||||
|
|
||||||
it 'responds with a pong' do
|
it 'responds with a pong' do
|
||||||
expect(json).to eq(pong: 'ok')
|
expect(json).to eq(pong: true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user