Sha256: 44e0cda6ec530ed393e7522e724f1e90c15feb8e12c8e3964bb8dab469e4c757
Contents?: true
Size: 778 Bytes
Versions: 6
Compression:
Stored size: 778 Bytes
Contents
RSpec.feature 'Admin - Reset Password', type: :feature do background do ActionMailer::Base.default_url_options[:host] = 'http://example.com' end scenario 'allows 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.admin_login_path click_link 'Forgot password?' fill_in 'Email', with: user.email 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.admin_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
6 entries across 6 versions & 1 rubygems