From ccd694a916a6ae0cc428d7ff954c88beace0d76f Mon Sep 17 00:00:00 2001 From: Yosuke Kabuto Date: Sun, 29 May 2016 13:13:42 +0900 Subject: [PATCH] Google::APIClient::FileStore.load_credentials loads all attrs of the json --- spec/google/api_client/auth/storages/file_store_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/google/api_client/auth/storages/file_store_spec.rb b/spec/google/api_client/auth/storages/file_store_spec.rb index 83199774b..e1f72916f 100644 --- a/spec/google/api_client/auth/storages/file_store_spec.rb +++ b/spec/google/api_client/auth/storages/file_store_spec.rb @@ -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