Sha256: a65e19452e6e14d641dd73098d61e22bf1ce4b3a11c8606aeb0de951a5ef40a2
Contents?: true
Size: 855 Bytes
Versions: 3
Compression:
Stored size: 855 Bytes
Contents
require 'spec_helper' RSpec.feature 'Confirmation', type: :feature, reload_user: true do before do set_confirmable_option(true) expect(Spree::UserMailer).to receive(:confirmation_instructions).with(anything, anything, { current_store_id: Spree::Store.current.id }).and_return(double(deliver: true)) end after(:each) { set_confirmable_option(false) } background do ActionMailer::Base.default_url_options[:host] = 'http://example.com' end scenario 'create a new user' do visit spree.signup_path fill_in 'Email', with: 'email@person.com' fill_in 'Password', with: 'password' fill_in 'Password Confirmation', with: 'password' click_button 'Sign Up' expect(page).to have_text I18n.t('devise.user_registrations.signed_up_but_unconfirmed') expect(Spree.user_class.last.confirmed?).to be(false) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_auth_devise-4.3.2 | spec/features/confirmation_spec.rb |
spree_auth_devise-4.3.1 | spec/features/confirmation_spec.rb |
spree_auth_devise-4.3.0 | spec/features/confirmation_spec.rb |