lhs 15.5.1 → 15.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +0,0 @@
1
- require 'lhc'
2
- class LHC::Config
3
-
4
- def _cleanup
5
- @endpoints = {}
6
- @placeholders = {}
7
- @interceptors = nil
8
- end
9
- end
10
-
11
- class LHS::Record
12
-
13
- CHILDREN = []
14
-
15
- def self.inherited(child)
16
- CHILDREN.push(child)
17
- super
18
- end
19
-
20
- end
21
-
22
- RSpec.configure do |config|
23
- config.before do |spec|
24
- next if spec.metadata.key?(:cleanup_before) && spec.metadata[:cleanup_before] == false
25
- LHC::Config.instance._cleanup
26
- LHS::Record::Endpoints.all = {}
27
- LHS::Record::CHILDREN.each do |child|
28
- child.endpoints = [] if !child.name['LHS'] && defined?(child.endpoints)
29
- child.configuration({}) if !child.name['LHS']
30
- end
31
- end
32
- end