From 121b2576aade8283cf03472c9d69b9dbb7b0c5bc Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Fri, 21 Jan 2022 17:06:03 +0000 Subject: [PATCH] Rename in spec too --- spec/requests/{auth => user}/passwords_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename spec/requests/{auth => user}/passwords_controller_spec.rb (95%) diff --git a/spec/requests/auth/passwords_controller_spec.rb b/spec/requests/user/passwords_controller_spec.rb similarity index 95% rename from spec/requests/auth/passwords_controller_spec.rb rename to spec/requests/user/passwords_controller_spec.rb index b6fbb8ac1..625eaa5c0 100644 --- a/spec/requests/auth/passwords_controller_spec.rb +++ b/spec/requests/user/passwords_controller_spec.rb @@ -1,7 +1,7 @@ require "rails_helper" require_relative "../../support/devise" -RSpec.describe Auth::PasswordsController, type: :request do +RSpec.describe User::PasswordsController, type: :request do let(:params) { { user: { email: email } } } let(:page) { Capybara::Node::Simple.new(response.body) } @@ -19,7 +19,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(Auth::PasswordsController).to receive(:is_navigational_format?).and_return(false) + allow_any_instance_of(User::PasswordsController).to receive(:is_navigational_format?).and_return(false) end let(:email) { "madeup_email@test.com" }