Google::APIClient::FileStore.load_credentials loads all attrs of the json

This commit is contained in:
Yosuke Kabuto 2016-05-29 13:13:42 +09:00
parent dffa167d5f
commit ccd694a916
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ describe Google::APIClient::FileStore do
it 'should load credentials' do
subject.path = json_file
credentials = subject.load_credentials
expect(credentials).to include('access_token', 'authorization_uri', 'refresh_token')
expect(credentials).to include(
'access_token', 'authorization_uri', 'refresh_token', 'client_id',
'client_secret', 'expires_in', 'token_credential_uri', 'issued_at')
end
it 'should write credentials' do