Sha256: b7327c39364d93b9474f06734a43dce8926e8b91141f8f04ff5564223e3edc9a
Contents?: true
Size: 642 Bytes
Versions: 8
Compression:
Stored size: 642 Bytes
Contents
require 'lhc' class LHC::Config def _cleanup @endpoints = {} @placeholders = {} @interceptors = nil end end class LHS::Record CHILDREN = [] def self.inherited(child) CHILDREN.push(child) super end end RSpec.configure do |config| config.before do |spec| next if spec.metadata.key?(:cleanup_before) && spec.metadata[:cleanup_before] == false LHC::Config.instance._cleanup LHS::Record::Endpoints.all = {} LHS::Record::CHILDREN.each do |child| child.endpoints = [] if !child.name['LHS'] && defined?(child.endpoints) child.configuration({}) if !child.name['LHS'] end end end
Version data entries
8 entries across 8 versions & 1 rubygems