Skip to content

Commit

Permalink
Update grants_spec to use patch
Browse files Browse the repository at this point in the history
Test should use patch instead of put for grants update
  • Loading branch information
atejada committed Feb 15, 2024
1 parent b27e404 commit 48bb94e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/nylas/resources/grants_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 48bb94e

Please sign in to comment.