DEV: Fix readonly admin login spec (#24714)

"prevents login by admins" should test with an admin.
This commit is contained in:
Daniel Waterworth 2023-12-05 06:49:22 -06:00 committed by GitHub
parent c5aa6b5e16
commit a6c79aa27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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