# frozen_string_literal: true

require 'rails_helper'

describe 'devise/mailer/reset_password_instructions.html.haml', type: "view" do
  context "logged in" do
    before do
      @resource = mock_model(Member)
      @resource.stub(:email).and_return("example@example.com")
      @resource.stub(:reset_password_token).and_return("joe")
      render
    end

    it 'has some of the right text' do
      expect(rendered).to have_content 'Change my password'
      expect(rendered).to have_content 'Someone has requested a link to reset your password'
    end
  end
end
