Sha256: 83e1aae2dcd72f441940e066f6fcc8f4c7d2ee5e000322b60e1167dcd9578842
Contents?: true
Size: 571 Bytes
Versions: 4
Compression:
Stored size: 571 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) 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