Sha256: 46db969aa962d1865cf459a4aebe761a4e3bf2b4ffb701e085f5a582f0ddfc70

Contents?: true

Size: 280 Bytes

Versions: 23

Compression:

Stored size: 280 Bytes

Contents

module ConfirmHelpers
  def set_confirmable_option(value)
    Spree::Auth::Config[:confirmable] = value
    Spree.send(:remove_const, 'User')
    load File.expand_path("../../../app/models/spree/user.rb", __FILE__)
  end
end

RSpec.configure do |c|
  c.include ConfirmHelpers
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
spree_auth_devise-4.0.1 spec/support/confirm_helpers.rb
spree_auth_devise-4.1.1 spec/support/confirm_helpers.rb
spree_auth_devise-4.2.1 spec/support/confirm_helpers.rb
spree_auth_devise-4.3.2 spec/support/confirm_helpers.rb
spree_auth_devise-4.3.1 spec/support/confirm_helpers.rb
spree_auth_devise-4.3.0 spec/support/confirm_helpers.rb
spree_auth_devise-4.2.0 spec/support/confirm_helpers.rb
spree_auth_devise-4.1.0 spec/support/confirm_helpers.rb
spree_auth_devise-4.1.0.rc1 spec/support/confirm_helpers.rb
spree_auth_devise-4.0.0 spec/support/confirm_helpers.rb
spree_auth_devise-4.0.0.rc2 spec/support/confirm_helpers.rb
spree_auth_devise-4.0.0.rc1 spec/support/confirm_helpers.rb
spree_auth_devise-3.5.2 spec/support/confirm_helpers.rb
spree_auth_devise-3.5.1 spec/support/confirm_helpers.rb
spree_auth_devise-3.5.0 spec/support/confirm_helpers.rb
spree_auth_devise-3.4.2 spec/support/confirm_helpers.rb
spree_auth_devise-3.4.1 spec/support/confirm_helpers.rb
spree_auth_devise-3.4.0 spec/support/confirm_helpers.rb
spree_auth_devise-3.3.3 spec/support/confirm_helpers.rb
spree_auth_devise-3.3.1 spec/support/confirm_helpers.rb