Browse Source

pulled out of support person context, this should work for any user in dev env

pull/594/head
JG 3 years ago
parent
commit
1101ae25fc
  1. 14
      spec/models/user_spec.rb

14
spec/models/user_spec.rb

@ -139,15 +139,15 @@ RSpec.describe User, type: :model do
it "can filter case logs by user, year, status and organisation" do it "can filter case logs by user, year, status and organisation" do
expect(user.case_logs_filters).to eq(%w[status years user organisation]) expect(user.case_logs_filters).to eq(%w[status years user organisation])
end end
end
context "when the user is in development environment" do context "when the user is in development environment" do
before do before do
allow(Rails.env).to receive(:development?).and_return(true) allow(Rails.env).to receive(:development?).and_return(true)
end end
it "doesn't require 2FA" do it "doesn't require 2FA" do
expect(user.need_two_factor_authentication?(nil)).to be false expect(user.need_two_factor_authentication?(nil)).to be false
end
end end
end end
end end

Loading…
Cancel
Save