From 20e9a9bdc6c209c579f8bb47af9cd3713cfd339b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Gomes?= Date: Thu, 14 Aug 2014 17:06:44 +0100 Subject: [PATCH] Small fix to service account spec --- spec/google/api_client/service_account_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/google/api_client/service_account_spec.rb b/spec/google/api_client/service_account_spec.rb index fb582badf..c1dd8754c 100644 --- a/spec/google/api_client/service_account_spec.rb +++ b/spec/google/api_client/service_account_spec.rb @@ -62,7 +62,7 @@ describe Google::APIClient::JWTAsserter do expect(jwt).not_to eq(nil) claim = JWT.decode(jwt, @key.public_key, true) - claim = claim.first if claim.respond_to? :first + claim = claim[0] if claim[0] expect(claim["iss"]).to eq('client1') expect(claim["scope"]).to eq('scope1 scope2') end