Skip to content

Commit 99992f8

Browse files
committed
Adjust tests
1 parent a0cbfde commit 99992f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/unit/endpoint/authorization_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@
6363
to_return(status: 200, body: "", headers: {})
6464
end
6565

66-
it 'does not succeed if state cookie mismatches' do
66+
it 'does not succeed if state cookie mismatches (redirects)' do
6767
Travis.redis.sadd('github:states', 'github-state')
6868
response = get '/auth/handshake?state=github-state&code=oauth-code'
69-
expect(response.status).to eq(401)
69+
expect(response.status).to eq(302)
7070
Travis.redis.srem('github:states', 'github-state')
7171
end
7272
end

0 commit comments

Comments
 (0)