Browse Source

Failing test

pull/367/head
baarkerlounger 3 years ago
parent
commit
9fb395ebfd
  1. 4
      spec/requests/auth/passwords_controller_spec.rb

4
spec/requests/auth/passwords_controller_spec.rb

@ -130,9 +130,11 @@ RSpec.describe Auth::PasswordsController, type: :request do
}.to change(admin_user, :encrypted_password) }.to change(admin_user, :encrypted_password)
end end
it "sends you to the 2FA page" do it "sends you to the 2FA page and does not allow bypassing 2FA code" do
put "/admin/password", headers: headers, params: params put "/admin/password", headers: headers, params: params
expect(response).to redirect_to("/admin/two-factor-authentication") expect(response).to redirect_to("/admin/two-factor-authentication")
get "/admin/case_logs", headers: headers
expect(response).to redirect_to("/admin/two-factor-authentication")
end end
it "triggers an SMS" do it "triggers an SMS" do

Loading…
Cancel
Save