Sha256: d052c23325a0ea8a423398c132c49f6c10809e963e59d3a81a0ed46644f3e6f8
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 Bytes
Contents
RSpec.configure do |config| config.around do |example| if example.metadata.key?(:confirmable) old_user = Spree::User begin example.run ensure Spree.const_set('User', old_user) end else example.run end end config.before do |example| if example.metadata.key?(:confirmable) Spree::Auth::Config[:confirmable] = example.metadata[:confirmable] Spree.send(:remove_const, :User) load File.expand_path('../../../app/models/spree/user.rb', __FILE__) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_auth_devise-4.3.4 | spec/support/confirm_helpers.rb |
spree_auth_devise-4.3.3 | spec/support/confirm_helpers.rb |