fix failing spec
This commit is contained in:
parent
9e0021e649
commit
94d8a3cd2e
|
@ -17,14 +17,15 @@ describe Travis::Api::App::Endpoint::Users do
|
||||||
it 'replies with the current user' do
|
it 'replies with the current user' do
|
||||||
get('/users', { access_token: access_token.to_s }, 'HTTP_ACCEPT' => 'application/vnd.travis-ci.2+json, */*; q=0.01').should be_ok
|
get('/users', { access_token: access_token.to_s }, 'HTTP_ACCEPT' => 'application/vnd.travis-ci.2+json, */*; q=0.01').should be_ok
|
||||||
parsed_body['user'].should == {
|
parsed_body['user'].should == {
|
||||||
'id' => user.id,
|
'id' => user.id,
|
||||||
'login' => user.login,
|
'login' => user.login,
|
||||||
'name' => user.name,
|
'name' => user.name,
|
||||||
'email' => user.email,
|
'email' => user.email,
|
||||||
'gravatar_id' => user.gravatar_id,
|
'gravatar_id' => user.gravatar_id,
|
||||||
'locale' => user.locale,
|
'locale' => user.locale,
|
||||||
'is_syncing' => user.is_syncing,
|
'is_syncing' => user.is_syncing,
|
||||||
'synced_at' => user.synced_at.strftime('%Y-%m-%dT%H:%M:%SZ')
|
'synced_at' => user.synced_at.strftime('%Y-%m-%dT%H:%M:%SZ'),
|
||||||
|
'correct_scopes' => true,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user