Sha256: 5009a9b35e91da360f5034a836c4f247cfbf66f2deb695c7ca24f98887f6c115

Contents?: true

Size: 767 Bytes

Versions: 1

Compression:

Stored size: 767 Bytes

Contents

# frozen_string_literal: true

require "rails_helper"

RSpec.describe "Auth password reset", type: :feature do
  describe "with unaccepted invitation" do
    before { create(:user, :invited, email: "amazing@email.com") }

    it "returns success message" do
      visit "/account/password/new"

      fill_in "Email", with: "amazing@email.com"
      click_button "Send me reset password instructions"

      expect(page)
        .to have_content("You will receive an email with instructions")
    end

    it "redirects back to the login form" do
      visit "/account/password/new"

      fill_in "Email", with: "amazing@email.com"
      click_button "Send me reset password instructions"

      expect(page).to have_current_path("/account/login")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
archangel-0.4.0 spec/features/auth/password_reset_spec.rb