Browse Source

Rename in spec too

pull/238/head
baarkerlounger 3 years ago
parent
commit
121b2576aa
  1. 4
      spec/requests/user/passwords_controller_spec.rb

4
spec/requests/auth/passwords_controller_spec.rb → 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" }
Loading…
Cancel
Save