From 0462af775c0d421f9bce7d4ba86b0ba80fdfa360 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Wed, 2 Feb 2022 19:15:41 +0000 Subject: [PATCH] And another one bites the dust --- spec/requests/auth/passwords_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/auth/passwords_controller_spec.rb b/spec/requests/auth/passwords_controller_spec.rb index 3ee41afee..ce0c8f1d8 100644 --- a/spec/requests/auth/passwords_controller_spec.rb +++ b/spec/requests/auth/passwords_controller_spec.rb @@ -27,7 +27,7 @@ RSpec.describe Auth::PasswordsController, type: :request do context "when a password reset is requested with an email that doesn't exist in the system" do before do - allow_any_instance_of(described_class).to receive(:is_navigational_format?).and_return(false) + allow(Devise.navigational_formats).to receive(:include?).and_return(false) end let(:email) { "madeup_email@test.com" }