From 62353e1965715ab6b8ee095f33850ba18bcba11d Mon Sep 17 00:00:00 2001 From: JG Date: Fri, 20 May 2022 07:16:04 +0100 Subject: [PATCH] only support user atm need 2fa, so making this explicit --- spec/models/user_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index e6d8eb9c5..b639b9547 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -142,6 +142,8 @@ RSpec.describe User, type: :model do end context "when the user is in development environment" do + let(:user) { FactoryBot.create(:user, :support) } + before do allow(Rails.env).to receive(:development?).and_return(true) end