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" }