diff --git a/spec/nylas/resources/grants_spec.rb b/spec/nylas/resources/grants_spec.rb index 78eea7e2..c923d1ab 100644 --- a/spec/nylas/resources/grants_spec.rb +++ b/spec/nylas/resources/grants_spec.rb @@ -56,7 +56,7 @@ scope: %w[https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile] } path = "#{api_uri}/v3/grants/#{grant_id}" - allow(grants).to receive(:put) + allow(grants).to receive(:patch) .with(path: path, request_body: request_body) .and_return(response)