We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0cbfde commit 99992f8Copy full SHA for 99992f8
spec/unit/endpoint/authorization_spec.rb
@@ -63,10 +63,10 @@
63
to_return(status: 200, body: "", headers: {})
64
end
65
66
- it 'does not succeed if state cookie mismatches' do
+ it 'does not succeed if state cookie mismatches (redirects)' do
67
Travis.redis.sadd('github:states', 'github-state')
68
response = get '/auth/handshake?state=github-state&code=oauth-code'
69
- expect(response.status).to eq(401)
+ expect(response.status).to eq(302)
70
Travis.redis.srem('github:states', 'github-state')
71
72
0 commit comments