DEV: Guardians aren't active record objects, so shouldn't use fab! (#17789)

This commit is contained in:
Daniel Waterworth
2022-08-03 19:17:40 -05:00
committed by GitHub
parent 7cab189b1e
commit 83d3543e33
5 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
RSpec.describe SecondFactor::AuthManager do
fab!(:user) { Fabricate(:user) }
fab!(:guardian) { Guardian.new(user) }
let(:guardian) { Guardian.new(user) }
fab!(:user_totp) { Fabricate(:user_second_factor_totp, user: user) }
def create_request(request_method: "GET", path: "/")