module-cluster 1.4.4 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +21 -0
- data/README.rdoc +21 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClass.rb +83 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClassOrModule.rb +70 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModule.rb +79 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModuleOrSubclass.rb +22 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrSubclass.rb +11 -3
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrSubclass.rb +10 -2
- data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +15 -3
- data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrSubclass.rb +10 -2
- data/lib/module-cluster/ModuleCluster/Define/Block/Subclass.rb +13 -2
- data/lib/module-cluster/ModuleCluster/Define/Block.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +34 -34
- data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/Deprecated.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +43 -43
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +34 -34
- data/lib/module-cluster/ModuleCluster/Define/Status.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Define.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Suspend/Hooks.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Suspend/WithoutHooks.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Suspend.rb +1 -1
- data/lib/module-cluster/ModuleCluster.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/ClusterStack.rb +3 -3
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/PerformCascades.rb +85 -32
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/Subclass.rb +6 -3
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +5 -5
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Class.rb +9 -9
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Inherited.rb +3 -3
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Instance.rb +5 -5
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Module.rb +9 -9
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Set.rb +1 -0
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Extends.rb +13 -13
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Includes.rb +10 -10
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsExtends.rb +13 -13
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsIncludes.rb +10 -10
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Status.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Suspend.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade/Subclass.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +1 -1
- data/lib/module-cluster.rb +14 -2
- data/spec/ModuleCluster/Define/Block/CascadingClassOrModule_spec.rb +285 -0
- data/spec/ModuleCluster/Define/Block/CascadingClass_spec.rb +241 -0
- data/spec/ModuleCluster/Define/Block/CascadingModuleOrSubclass_spec.rb +56 -0
- data/spec/ModuleCluster/Define/Block/CascadingModule_spec.rb +278 -0
- data/spec/ModuleCluster/Define/Block/ClassOrInstance_spec.rb +13 -13
- data/spec/ModuleCluster/Define/Block/ClassOrModuleOrInstance_spec.rb +13 -13
- data/spec/ModuleCluster/Define/Block/ClassOrModuleOrSubclass_spec.rb +2 -3
- data/spec/ModuleCluster/Define/Block/ClassOrModule_spec.rb +13 -13
- data/spec/ModuleCluster/Define/Block/ClassOrSubclass_spec.rb +2 -2
- data/spec/ModuleCluster/Define/Block/Class_spec.rb +13 -13
- data/spec/ModuleCluster/Define/Block/Instance_spec.rb +5 -5
- data/spec/ModuleCluster/Define/Block/ModuleOrInstance_spec.rb +1 -1
- data/spec/ModuleCluster/Define/Block/ModuleOrSubclass_spec.rb +2 -4
- data/spec/ModuleCluster/Define/Block/Module_spec.rb +13 -13
- data/spec/ModuleCluster/Define/Block/Subclass_spec.rb +8 -8
- data/spec/ModuleCluster/Define/Block_spec.rb +9 -9
- data/spec/ModuleCluster/Define/ClassCluster_spec.rb +227 -227
- data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +197 -197
- data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +228 -228
- data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +232 -232
- data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +224 -224
- data/spec/ModuleCluster/Define/Cluster_spec.rb +221 -221
- data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +29 -29
- data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +227 -227
- data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +227 -227
- data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +197 -197
- data/spec/ModuleCluster/Suspend/Hooks_spec.rb +120 -120
- data/spec/ModuleCluster/Suspend/WithoutHooks_spec.rb +120 -120
- data/spec/ModuleCluster_spec.rb +2 -2
- data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +192 -192
- data/spec/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy_spec.rb +129 -129
- data/spec/_private_/ModuleCluster/ClusterStack/Suspend_spec.rb +17 -17
- metadata +9 -1
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
2
|
require_relative '../../../lib/module-cluster.rb'
|
3
3
|
|
4
|
-
describe ModuleCluster::Define::ClusterCascadesToClass do
|
4
|
+
describe ::ModuleCluster::Define::ClusterCascadesToClass do
|
5
5
|
|
6
6
|
##########################
|
7
7
|
# self.should_cascade? #
|
8
8
|
##########################
|
9
9
|
|
10
10
|
it 'should cascade to classes' do
|
11
|
-
ModuleCluster::Define::ClusterCascadesToClass.should_cascade?( Kernel ).should == true
|
12
|
-
ModuleCluster::Define::ClusterCascadesToClass.should_cascade?( Class ).should == false
|
13
|
-
ModuleCluster::Define::ClusterCascadesToClass.should_cascade?( Object.new ).should == false
|
11
|
+
::ModuleCluster::Define::ClusterCascadesToClass.should_cascade?( Kernel ).should == true
|
12
|
+
::ModuleCluster::Define::ClusterCascadesToClass.should_cascade?( Class ).should == false
|
13
|
+
::ModuleCluster::Define::ClusterCascadesToClass.should_cascade?( Object.new ).should == false
|
14
14
|
end
|
15
15
|
|
16
16
|
########################################
|
@@ -18,7 +18,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
18
18
|
########################################
|
19
19
|
|
20
20
|
it 'include modules for any class this module or any including modules are included in' do
|
21
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock01
|
21
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock01
|
22
22
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
23
23
|
module Module1
|
24
24
|
end
|
@@ -29,34 +29,34 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
29
29
|
module ModuleProof1
|
30
30
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock01
|
31
31
|
eigenclass = class << self ; self ; end
|
32
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
33
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
34
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
35
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
32
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
33
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
34
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
35
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
36
36
|
end
|
37
37
|
class ClassProof
|
38
38
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock01
|
39
39
|
eigenclass = class << self ; self ; end
|
40
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
41
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
42
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == true
|
43
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == true
|
40
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
41
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
42
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == true
|
43
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == true
|
44
44
|
end
|
45
45
|
module ModuleProof2
|
46
46
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::ModuleProof1
|
47
47
|
eigenclass = class << self ; self ; end
|
48
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
49
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
50
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
51
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
48
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
49
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
50
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
51
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
52
52
|
end
|
53
53
|
class ClassProof2
|
54
54
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::ModuleProof1
|
55
55
|
eigenclass = class << self ; self ; end
|
56
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
57
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
58
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == true
|
59
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == true
|
56
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
57
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
58
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == true
|
59
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == true
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
@@ -66,7 +66,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
66
66
|
#######################################
|
67
67
|
|
68
68
|
it 'extends modules for any class this module or any including modules are included in' do
|
69
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock02
|
69
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock02
|
70
70
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
71
71
|
module Module1
|
72
72
|
end
|
@@ -76,35 +76,35 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
76
76
|
respond_to?( :included ).should == true
|
77
77
|
module ModuleProof1
|
78
78
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock02
|
79
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
80
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
79
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
80
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
81
81
|
eigenclass = class << self ; self ; end
|
82
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
83
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
82
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
83
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
84
84
|
end
|
85
85
|
class ClassProof
|
86
86
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock02
|
87
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
88
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
87
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
88
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
89
89
|
eigenclass = class << self ; self ; end
|
90
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == true
|
91
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == true
|
90
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == true
|
91
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == true
|
92
92
|
end
|
93
93
|
module ModuleProof2
|
94
94
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::ModuleProof1
|
95
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
96
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
95
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
96
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
97
97
|
eigenclass = class << self ; self ; end
|
98
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
99
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
98
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
99
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
100
100
|
end
|
101
101
|
class ClassProof2
|
102
102
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::ModuleProof1
|
103
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
104
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
103
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
104
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
105
105
|
eigenclass = class << self ; self ; end
|
106
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == true
|
107
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == true
|
106
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == true
|
107
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == true
|
108
108
|
end
|
109
109
|
end
|
110
110
|
end
|
@@ -114,7 +114,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
114
114
|
####################################################
|
115
115
|
|
116
116
|
it 'include and extends modules for any class this module or any including modules are included in' do
|
117
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock03
|
117
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock03
|
118
118
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
119
119
|
module Module1
|
120
120
|
end
|
@@ -124,35 +124,35 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
124
124
|
respond_to?( :included ).should == true
|
125
125
|
module ModuleProof1
|
126
126
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock03
|
127
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
128
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
127
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
128
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
129
129
|
eigenclass = class << self ; self ; end
|
130
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
131
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
130
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
131
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
132
132
|
end
|
133
133
|
class ClassProof
|
134
134
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock03
|
135
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == true
|
136
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == true
|
135
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == true
|
136
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == true
|
137
137
|
eigenclass = class << self ; self ; end
|
138
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == true
|
139
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == true
|
138
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == true
|
139
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == true
|
140
140
|
end
|
141
141
|
module ModuleProof2
|
142
142
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::ModuleProof1
|
143
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
144
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
143
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
144
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
145
145
|
eigenclass = class << self ; self ; end
|
146
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
147
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
146
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
147
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
148
148
|
end
|
149
149
|
class ClassProof2
|
150
150
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::ModuleProof1
|
151
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == true
|
152
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == true
|
151
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == true
|
152
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == true
|
153
153
|
eigenclass = class << self ; self ; end
|
154
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == true
|
155
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == true
|
154
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == true
|
155
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == true
|
156
156
|
end
|
157
157
|
end
|
158
158
|
end
|
@@ -162,7 +162,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
162
162
|
#######################################
|
163
163
|
|
164
164
|
it 'include modules for any class this module is extended in' do
|
165
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock04
|
165
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock04
|
166
166
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
167
167
|
module Module1
|
168
168
|
end
|
@@ -172,47 +172,47 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
172
172
|
respond_to?( :extended ).should == true
|
173
173
|
module ModuleProof1
|
174
174
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock04
|
175
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
176
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
175
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
176
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
177
177
|
eigenclass = class << self ; self ; end
|
178
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
179
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
178
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
179
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
180
180
|
end
|
181
181
|
class ClassProof
|
182
182
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock04
|
183
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == true
|
184
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == true
|
183
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == true
|
184
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == true
|
185
185
|
eigenclass = class << self ; self ; end
|
186
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
187
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
186
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
187
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
188
188
|
end
|
189
189
|
Object.new.instance_eval do
|
190
190
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::ModuleProof1
|
191
191
|
eigenclass = class << self ; self ; end
|
192
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
193
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
192
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
193
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
194
194
|
end
|
195
195
|
module ModuleProof2
|
196
196
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::ModuleProof1
|
197
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
198
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
197
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
198
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
199
199
|
eigenclass = class << self ; self ; end
|
200
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
201
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
200
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
201
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
202
202
|
end
|
203
203
|
class ClassProof2
|
204
204
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::ModuleProof1
|
205
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == true
|
206
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == true
|
205
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == true
|
206
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == true
|
207
207
|
eigenclass = class << self ; self ; end
|
208
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
209
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
208
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
209
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
210
210
|
end
|
211
211
|
Object.new.instance_eval do
|
212
212
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::ModuleProof1
|
213
213
|
eigenclass = class << self ; self ; end
|
214
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
215
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
214
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
215
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
216
216
|
end
|
217
217
|
end
|
218
218
|
end
|
@@ -222,7 +222,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
222
222
|
######################################
|
223
223
|
|
224
224
|
it 'extend modules for any class this module is extended in' do
|
225
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock05
|
225
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock05
|
226
226
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
227
227
|
module Module1
|
228
228
|
end
|
@@ -232,47 +232,47 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
232
232
|
respond_to?( :extended ).should == true
|
233
233
|
module ModuleProof1
|
234
234
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock05
|
235
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
236
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
235
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
236
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
237
237
|
eigenclass = class << self ; self ; end
|
238
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
239
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
238
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
239
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
240
240
|
end
|
241
241
|
class ClassProof
|
242
242
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock05
|
243
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
244
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
243
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
244
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
245
245
|
eigenclass = class << self ; self ; end
|
246
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == true
|
247
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == true
|
246
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == true
|
247
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == true
|
248
248
|
end
|
249
249
|
Object.new.instance_eval do
|
250
250
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::ModuleProof1
|
251
251
|
eigenclass = class << self ; self ; end
|
252
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
253
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
252
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
253
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
254
254
|
end
|
255
255
|
module ModuleProof2
|
256
256
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::ModuleProof1
|
257
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
258
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
257
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
258
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
259
259
|
eigenclass = class << self ; self ; end
|
260
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
261
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
260
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
261
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
262
262
|
end
|
263
263
|
class ClassProof2
|
264
264
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::ModuleProof1
|
265
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
266
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
265
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
266
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
267
267
|
eigenclass = class << self ; self ; end
|
268
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == true
|
269
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == true
|
268
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == true
|
269
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == true
|
270
270
|
end
|
271
271
|
Object.new.instance_eval do
|
272
272
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::ModuleProof1
|
273
273
|
eigenclass = class << self ; self ; end
|
274
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
275
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
274
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
275
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
276
276
|
end
|
277
277
|
end
|
278
278
|
end
|
@@ -282,7 +282,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
282
282
|
###################################################
|
283
283
|
|
284
284
|
it 'include and extend modules for any class this module is extended in' do
|
285
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock06
|
285
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock06
|
286
286
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
287
287
|
module Module1
|
288
288
|
end
|
@@ -292,47 +292,47 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
292
292
|
respond_to?( :extended ).should == true
|
293
293
|
module ModuleProof1
|
294
294
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock06
|
295
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
296
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
295
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
296
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
297
297
|
eigenclass = class << self ; self ; end
|
298
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
299
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
298
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
299
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
300
300
|
end
|
301
301
|
class ClassProof
|
302
302
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock06
|
303
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == true
|
304
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == true
|
303
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == true
|
304
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == true
|
305
305
|
eigenclass = class << self ; self ; end
|
306
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == true
|
307
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == true
|
306
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == true
|
307
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == true
|
308
308
|
end
|
309
309
|
Object.new.instance_eval do
|
310
310
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::ModuleProof1
|
311
311
|
eigenclass = class << self ; self ; end
|
312
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
313
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
312
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
313
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
314
314
|
end
|
315
315
|
module ModuleProof2
|
316
316
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::ModuleProof1
|
317
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
318
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
317
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
318
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
319
319
|
eigenclass = class << self ; self ; end
|
320
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
321
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
320
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
321
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
322
322
|
end
|
323
323
|
class ClassProof2
|
324
324
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::ModuleProof1
|
325
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == true
|
326
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == true
|
325
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == true
|
326
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == true
|
327
327
|
eigenclass = class << self ; self ; end
|
328
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == true
|
329
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == true
|
328
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == true
|
329
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == true
|
330
330
|
end
|
331
331
|
Object.new.instance_eval do
|
332
332
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::ModuleProof1
|
333
333
|
eigenclass = class << self ; self ; end
|
334
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
335
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
334
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
335
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
336
336
|
end
|
337
337
|
end
|
338
338
|
end
|
@@ -342,7 +342,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
342
342
|
###################################################
|
343
343
|
|
344
344
|
it 'include other modules for any class this module or any including modules are included in, before this module or including module is included' do
|
345
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock07
|
345
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock07
|
346
346
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
347
347
|
module Module1
|
348
348
|
end
|
@@ -352,35 +352,35 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
352
352
|
respond_to?( :append_features ).should == true
|
353
353
|
module ModuleProof1
|
354
354
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock07
|
355
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
356
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
355
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
356
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
357
357
|
eigenclass = class << self ; self ; end
|
358
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
359
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
358
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
359
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
360
360
|
end
|
361
361
|
class ClassProof
|
362
362
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock07
|
363
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == true
|
364
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == true
|
363
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == true
|
364
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == true
|
365
365
|
eigenclass = class << self ; self ; end
|
366
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
367
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
366
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
367
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
368
368
|
end
|
369
369
|
module ModuleProof2
|
370
370
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::ModuleProof1
|
371
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
372
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
371
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
372
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
373
373
|
eigenclass = class << self ; self ; end
|
374
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
375
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
374
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
375
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
376
376
|
end
|
377
377
|
class ClassProof2
|
378
378
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::ModuleProof1
|
379
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == true
|
380
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == true
|
379
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == true
|
380
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == true
|
381
381
|
eigenclass = class << self ; self ; end
|
382
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
383
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
382
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
383
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
384
384
|
end
|
385
385
|
end
|
386
386
|
end
|
@@ -390,7 +390,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
390
390
|
##################################################
|
391
391
|
|
392
392
|
it 'extend other modules for any class this module or any including modules are included in, before this module or including module is included' do
|
393
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock08
|
393
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock08
|
394
394
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
395
395
|
module Module1
|
396
396
|
end
|
@@ -400,35 +400,35 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
400
400
|
respond_to?( :append_features ).should == true
|
401
401
|
module ModuleProof1
|
402
402
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock08
|
403
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
404
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
403
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
404
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
405
405
|
eigenclass = class << self ; self ; end
|
406
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
407
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
406
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
407
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
408
408
|
end
|
409
409
|
class ClassProof
|
410
410
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock08
|
411
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
412
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
411
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
412
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
413
413
|
eigenclass = class << self ; self ; end
|
414
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == true
|
415
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == true
|
414
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == true
|
415
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == true
|
416
416
|
end
|
417
417
|
module ModuleProof2
|
418
418
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::ModuleProof1
|
419
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
420
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
419
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
420
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
421
421
|
eigenclass = class << self ; self ; end
|
422
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
423
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
422
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
423
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
424
424
|
end
|
425
425
|
class ClassProof2
|
426
426
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::ModuleProof1
|
427
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
428
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
427
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
428
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
429
429
|
eigenclass = class << self ; self ; end
|
430
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == true
|
431
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == true
|
430
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == true
|
431
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == true
|
432
432
|
end
|
433
433
|
end
|
434
434
|
end
|
@@ -438,7 +438,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
438
438
|
###############################################################
|
439
439
|
|
440
440
|
it 'include and extend other modules for any class this module or any including modules are included in, before this module or including module is included' do
|
441
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock09
|
441
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock09
|
442
442
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
443
443
|
module Module1
|
444
444
|
end
|
@@ -448,35 +448,35 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
448
448
|
respond_to?( :append_features ).should == true
|
449
449
|
module ModuleProof1
|
450
450
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock09
|
451
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
452
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
451
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
452
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
453
453
|
eigenclass = class << self ; self ; end
|
454
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
455
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
454
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
455
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
456
456
|
end
|
457
457
|
class ClassProof
|
458
458
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock09
|
459
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == true
|
460
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == true
|
459
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == true
|
460
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == true
|
461
461
|
eigenclass = class << self ; self ; end
|
462
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == true
|
463
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == true
|
462
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == true
|
463
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == true
|
464
464
|
end
|
465
465
|
module ModuleProof2
|
466
466
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::ModuleProof1
|
467
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
468
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
467
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
468
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
469
469
|
eigenclass = class << self ; self ; end
|
470
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
471
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
470
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
471
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
472
472
|
end
|
473
473
|
class ClassProof2
|
474
474
|
include ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::ModuleProof1
|
475
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == true
|
476
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == true
|
475
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == true
|
476
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == true
|
477
477
|
eigenclass = class << self ; self ; end
|
478
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == true
|
479
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == true
|
478
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == true
|
479
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == true
|
480
480
|
end
|
481
481
|
end
|
482
482
|
end
|
@@ -486,7 +486,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
486
486
|
##################################################
|
487
487
|
|
488
488
|
it 'include other modules for any class this module or any including modules are included in, before this module is extended' do
|
489
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock10
|
489
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock10
|
490
490
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
491
491
|
module Module1
|
492
492
|
end
|
@@ -496,47 +496,47 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
496
496
|
respond_to?( :extend_object ).should == true
|
497
497
|
module ModuleProof1
|
498
498
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock10
|
499
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
500
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
499
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
500
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
501
501
|
eigenclass = class << self ; self ; end
|
502
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
503
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
502
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
503
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
504
504
|
end
|
505
505
|
class ClassProof
|
506
506
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::ModuleProof1
|
507
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == true
|
508
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == true
|
507
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == true
|
508
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == true
|
509
509
|
eigenclass = class << self ; self ; end
|
510
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
511
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
510
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
511
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
512
512
|
end
|
513
513
|
Object.new.instance_eval do
|
514
514
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock10
|
515
515
|
eigenclass = class << self ; self ; end
|
516
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
517
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
516
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
517
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
518
518
|
end
|
519
519
|
module ModuleProof2
|
520
520
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::ModuleProof1
|
521
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
522
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
521
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
522
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
523
523
|
eigenclass = class << self ; self ; end
|
524
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
525
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
524
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
525
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
526
526
|
end
|
527
527
|
class ClassProof2
|
528
528
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::ModuleProof1
|
529
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == true
|
530
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == true
|
529
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == true
|
530
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == true
|
531
531
|
eigenclass = class << self ; self ; end
|
532
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
533
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
532
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
533
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
534
534
|
end
|
535
535
|
Object.new.instance_eval do
|
536
536
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::ModuleProof1
|
537
537
|
eigenclass = class << self ; self ; end
|
538
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
539
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
538
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
539
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
540
540
|
end
|
541
541
|
end
|
542
542
|
end
|
@@ -546,7 +546,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
546
546
|
#################################################
|
547
547
|
|
548
548
|
it 'extend other modules for any class this module or any including modules are included in, before this module is extended' do
|
549
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock11
|
549
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock11
|
550
550
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
551
551
|
module Module1
|
552
552
|
end
|
@@ -556,47 +556,47 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
556
556
|
respond_to?( :extend_object ).should == true
|
557
557
|
module ModuleProof1
|
558
558
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock11
|
559
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
560
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
559
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
560
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
561
561
|
eigenclass = class << self ; self ; end
|
562
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
563
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
562
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
563
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
564
564
|
end
|
565
565
|
class ClassProof
|
566
566
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock11
|
567
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
568
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
567
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
568
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
569
569
|
eigenclass = class << self ; self ; end
|
570
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == true
|
571
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == true
|
570
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == true
|
571
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == true
|
572
572
|
end
|
573
573
|
Object.new.instance_eval do
|
574
574
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::ModuleProof1
|
575
575
|
eigenclass = class << self ; self ; end
|
576
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
577
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
576
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
577
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
578
578
|
end
|
579
579
|
module ModuleProof2
|
580
580
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::ModuleProof1
|
581
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
582
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
581
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
582
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
583
583
|
eigenclass = class << self ; self ; end
|
584
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
585
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
584
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
585
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
586
586
|
end
|
587
587
|
class ClassProof2
|
588
588
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::ModuleProof1
|
589
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
590
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
589
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
590
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
591
591
|
eigenclass = class << self ; self ; end
|
592
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == true
|
593
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == true
|
592
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == true
|
593
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == true
|
594
594
|
end
|
595
595
|
Object.new.instance_eval do
|
596
596
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::ModuleProof1
|
597
597
|
eigenclass = class << self ; self ; end
|
598
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
599
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
598
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
599
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
600
600
|
end
|
601
601
|
end
|
602
602
|
end
|
@@ -606,7 +606,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
606
606
|
##############################################################
|
607
607
|
|
608
608
|
it 'include and extend other modules for any class this module or any including modules are included in, before this module is extended' do
|
609
|
-
module ModuleCluster::Define::ClusterCascadesToClass::Mock12
|
609
|
+
module ::ModuleCluster::Define::ClusterCascadesToClass::Mock12
|
610
610
|
extend ::ModuleCluster::Define::ClusterCascadesToClass
|
611
611
|
module Module1
|
612
612
|
end
|
@@ -619,39 +619,39 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
619
619
|
end
|
620
620
|
class ClassProof
|
621
621
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock12
|
622
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == true
|
623
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == true
|
622
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == true
|
623
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == true
|
624
624
|
eigenclass = class << self ; self ; end
|
625
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == true
|
626
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == true
|
625
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == true
|
626
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == true
|
627
627
|
end
|
628
628
|
Object.new.instance_eval do
|
629
629
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::ModuleProof1
|
630
630
|
eigenclass = class << self ; self ; end
|
631
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == false
|
632
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == false
|
631
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == false
|
632
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == false
|
633
633
|
end
|
634
634
|
module ModuleProof2
|
635
635
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::ModuleProof1
|
636
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == false
|
637
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == false
|
636
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == false
|
637
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == false
|
638
638
|
eigenclass = class << self ; self ; end
|
639
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == false
|
640
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == false
|
639
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == false
|
640
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == false
|
641
641
|
end
|
642
642
|
class ClassProof2
|
643
643
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::ModuleProof1
|
644
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == true
|
645
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == true
|
644
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == true
|
645
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == true
|
646
646
|
eigenclass = class << self ; self ; end
|
647
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == true
|
648
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == true
|
647
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == true
|
648
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == true
|
649
649
|
end
|
650
650
|
Object.new.instance_eval do
|
651
651
|
extend ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::ModuleProof1
|
652
652
|
eigenclass = class << self ; self ; end
|
653
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == false
|
654
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == false
|
653
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == false
|
654
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == false
|
655
655
|
end
|
656
656
|
end
|
657
657
|
end
|