mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
UX: bumps the user-api-key version to 3 (#6526)
* UX: bumps the user-api-key version to 3 * fix spec
This commit is contained in:

committed by
Régis Hanol

parent
2a77550f8c
commit
8e274f7296
@ -48,7 +48,7 @@ describe UserApiKeysController do
|
||||
it "supports a head request cleanly" do
|
||||
head "/user-api-key/new"
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.headers["Auth-Api-Version"]).to eq("2")
|
||||
expect(response.headers["Auth-Api-Version"]).to eq("3")
|
||||
end
|
||||
end
|
||||
|
||||
@ -156,7 +156,7 @@ describe UserApiKeysController do
|
||||
|
||||
expect(parsed["nonce"]).to eq(args[:nonce])
|
||||
expect(parsed["push"]).to eq(false)
|
||||
expect(parsed["api"]).to eq(2)
|
||||
expect(parsed["api"]).to eq(3)
|
||||
|
||||
key = user.user_api_keys.first
|
||||
expect(key.scopes).to include("push")
|
||||
|
Reference in New Issue
Block a user