Sha256: 318b518172f88c70ff0a6445e2fb2189980dffbedbafd0b7cddae6e1dc070300
Contents?: true
Size: 729 Bytes
Versions: 9
Compression:
Stored size: 729 Bytes
Contents
require 'spec_helper' feature 'Confirmation' do before do set_confirmable_option(true) Spree::UserMailer.stub(:confirmation_instructions).and_return(double(deliver: true)) end after(:each) { set_confirmable_option(false) } let!(:store) { create(:store) } 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 'Create' expect(page).to have_text 'You have signed up successfully.' expect(Spree::User.last.confirmed?).to be(false) end end
Version data entries
9 entries across 9 versions & 2 rubygems