Sha256: 8511937e6a37bc194076b1b0fbb31f379c01c7486dcaf7272f497eff42b8353b
Contents?: true
Size: 675 Bytes
Versions: 36
Compression:
Stored size: 675 Bytes
Contents
require 'test_helper' module Schemacop module V2 class NodeResolverTest < V2Test class ClassA; end class ClassB; end class ClassC; end class ClassD; end def test_insert_before prev_node_classes = NodeResolver.node_classes NodeResolver.node_classes = [] NodeResolver.register(ClassA) NodeResolver.register(ClassB) NodeResolver.register(ClassC) NodeResolver.register(ClassD, before: ClassB) assert_equal [ClassA, ClassD, ClassB, ClassC], NodeResolver.node_classes ensure NodeResolver.node_classes = prev_node_classes end end end end
Version data entries
36 entries across 36 versions & 1 rubygems