spec/googleauth/signet_spec.rb in googleauth-0.5.3 vs spec/googleauth/signet_spec.rb in googleauth-0.6.0

- old
+ new

@@ -55,10 +55,11 @@ 'token_type' => 'Bearer', 'expires_in' => 3600) blk = proc do |request| params = Addressable::URI.form_unencode(request.body) _claim, _header = JWT.decode(params.assoc('assertion').last, - @key.public_key) + @key.public_key, true, + algorithm: 'RS256') end stub_request(:post, 'https://accounts.google.com/o/oauth2/token') .with(body: hash_including( 'grant_type' => 'urn:ietf:params:oauth:grant-type:jwt-bearer' ), &blk)