Sha256: d06251f4bfcc47556f0dcc612757ac5cc369b0c4d609935505ead0a751ff5219
Contents?: true
Size: 737 Bytes
Versions: 1
Compression:
Stored size: 737 Bytes
Contents
require 'spec_helper' RSpec.feature 'Confirmation', type: :feature, reload_user: true do before do set_confirmable_option(true) Spree::UserMailer.stub(:confirmation_instructions).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 'You have signed up successfully.' expect(Spree::User.last.confirmed?).to be(false) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_auth_devise-4.1.0.rc1 | spec/features/confirmation_spec.rb |