DEV: Fix readonly admin login spec (#24714)
"prevents login by admins" should test with an admin.
This commit is contained in:
parent
c5aa6b5e16
commit
a6c79aa27a
|
@ -1832,7 +1832,7 @@ RSpec.describe SessionController do
|
|||
end
|
||||
|
||||
it "prevents login by admins" do
|
||||
post "/session.json", params: { login: user.username, password: "myawesomepassword" }
|
||||
post "/session.json", params: { login: admin.username, password: "myawesomepassword" }
|
||||
expect(response.status).not_to eq(200)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue