Skip to content

Commit

Permalink
DEV: Fix readonly admin login spec (discourse#24714)
Browse files Browse the repository at this point in the history
"prevents login by admins" should test with an admin.
  • Loading branch information
danielwaterworth authored Dec 5, 2023
1 parent c5aa6b5 commit a6c79aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/requests/session_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,7 @@ def login_with_sso_and_invite(invite_key = invite.invite_key)
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
Expand Down

0 comments on commit a6c79aa

Please sign in to comment.