Sha256: 307f0c48e5fcf28cba6568f1890250ab7321696d61c12b229af346b8e3dceb08
Contents?: true
Size: 823 Bytes
Versions: 15
Compression:
Stored size: 823 Bytes
Contents
RSpec.feature 'Admin - Reset Password', type: :feature do let!(:store) { create(:store) } 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: '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.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
15 entries across 15 versions & 1 rubygems