projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78ff182
)
Small fix to service account spec
author
Sérgio Gomes <sgomes@google.com>
Thu, 14 Aug 2014 16:06:44 +0000
(17:06 +0100)
committer
Sérgio Gomes <sgomes@google.com>
Thu, 14 Aug 2014 16:06:44 +0000
(17:06 +0100)
spec/google/api_client/service_account_spec.rb
patch
|
blob
|
history
diff --git
a/spec/google/api_client/service_account_spec.rb
b/spec/google/api_client/service_account_spec.rb
index fb582badf4945d4eb0a54970f033341c20520743..c1dd8754cad83e6de70ca27e5222db56886c0db4 100644
(file)
--- 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