Sha256: a13fadb64564e7fb6a690b3949033d2e2a2771691c6b1a867caf53e0d2ce91ff
Contents?: true
Size: 675 Bytes
Versions: 4
Compression:
Stored size: 675 Bytes
Contents
RSpec.configure do |config| config.around do |example| if example.metadata.key?(:confirmable) old_setting = Spree::Auth::Config.confirmable old_user = Spree::User begin example.run ensure Spree.const_set('User', old_user) Spree::Auth::Config.confirmable = old_setting end else example.run end end config.before do |example| if example.metadata.key?(:confirmable) Rails.cache.clear 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
4 entries across 4 versions & 1 rubygems