Skip to content

Commit 4222f54

Browse files
committed
Fixing tests
1 parent 97e841a commit 4222f54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/endpoint/authorization_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
describe 'evil hackers messing with the state' do
5151
before do
52-
stub_request(:post, "https://foobar.com/access_token_path").
52+
WebMock.stub_request(:post, "https://foobar.com/access_token_path").
5353
with(
5454
body: "{\"client_id\":\"client-id\",\"scope\":\"public_repo,user:email,new_scope\",\"redirect_uri\":\"http://example.org/auth/handshake\",\"state\":\"github-state\",\"code\":\"oauth-code\",\"client_secret\":\"client-secret\"}",
5555
headers: {

0 commit comments

Comments
 (0)