Sha256: 4235ddb8ac43a27c8b99f11c0961ec12fa127c1569542876d011efe1f78d93e4
Contents?: true
Size: 641 Bytes
Versions: 5
Compression:
Stored size: 641 Bytes
Contents
# frozen_string_literal: true RSpec.configure do |config| config.around do |example| if example.metadata.key?(:confirmable) old_user = Spree::User begin example.run ensure Spree.send(:remove_const, :User) Spree.const_set('User', old_user) end else example.run end end config.before do |example| if example.metadata.key?(:confirmable) stub_spree_preferences(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
5 entries across 5 versions & 1 rubygems