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