Sha256: 6f6d4e79d364a58e7b7b8409d9f8352ecb3372b0b937e661744625c332c7b982

Contents?: true

Size: 799 Bytes

Versions: 17

Compression:

Stored size: 799 Bytes

Contents

require 'spec_helper'

feature 'Confirmation' do
  before do
   skip "this introduces a run order dependency"
  end

  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

17 entries across 17 versions & 2 rubygems

Version Path
solidus_auth_devise_devise_token_auth-2.1.0.5 spec/features/confirmation_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0.4 spec/features/confirmation_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0.3 spec/features/confirmation_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0.2 spec/features/confirmation_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0.1 spec/features/confirmation_spec.rb
solidus_auth_devise_devise_token_auth-2.1.0 spec/features/confirmation_spec.rb
solidus_auth_devise-2.1.0 spec/features/confirmation_spec.rb
solidus_auth_devise-2.0.0 spec/features/confirmation_spec.rb
solidus_auth_devise-1.6.4 spec/features/confirmation_spec.rb
solidus_auth_devise-1.6.3 spec/features/confirmation_spec.rb
solidus_auth_devise-1.6.2 spec/features/confirmation_spec.rb
solidus_auth_devise-1.6.1 spec/features/confirmation_spec.rb
solidus_auth_devise-1.6.0 spec/features/confirmation_spec.rb
solidus_auth_devise-1.5.0 spec/features/confirmation_spec.rb
solidus_auth_devise-1.4.0 spec/features/confirmation_spec.rb
solidus_auth_devise-1.3.0 spec/features/confirmation_spec.rb
solidus_auth_devise-1.2.3 spec/features/confirmation_spec.rb