Sha256: 38869b2d2f7b7509ca8d86ed882a5477e9498e3025217d1992b2c56227d03b06
Contents?: true
Size: 803 Bytes
Versions: 27
Compression:
Stored size: 803 Bytes
Contents
RSpec.feature 'Reset Password', type: :feature do let!(:store) { create(:store) } background do ActionMailer::Base.default_url_options[:host] = 'http://example.com' end scenario 'allow a user to supply an email for the password reset' do user = create(:user, email: 'foobar@example.com', password: 'secret', password_confirmation: 'secret') visit spree.login_path click_link 'Forgot Password?' fill_in 'Email', with: 'foobar@example.com' click_button 'Reset my password' expect(page).to have_text 'You will receive an email with instructions' end scenario 'shows errors if no email is supplied' do visit spree.login_path click_link 'Forgot Password?' click_button 'Reset my password' expect(page).to have_text "Email can't be blank" end end
Version data entries
27 entries across 27 versions & 3 rubygems