module-cluster 1.3.7 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +146 -1
- data/README.rdoc +146 -1
- data/lib/module-cluster.rb +54 -12
- data/lib/module-cluster/ModuleCluster/Define/Block.rb +3 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +16 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +63 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +2 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +63 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +32 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +16 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +63 -0
- data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +200 -0
- data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +127 -0
- data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +7 -19
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +5 -20
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +9 -26
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +9 -26
- data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +46 -0
- data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +200 -0
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +208 -0
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +127 -0
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +54 -0
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/ClusterStack.rb +44 -0
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/PerformCascades.rb +209 -0
- data/lib/module-cluster/{ModuleCluster → _private_/ModuleCluster}/ClusterStack.rb +0 -2
- data/lib/module-cluster/{ModuleCluster → _private_/ModuleCluster}/ClusterStack/Block.rb +1 -2
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Class.rb +36 -0
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Instance.rb +20 -0
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Module.rb +36 -0
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Set.rb +2 -0
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Extends.rb +108 -0
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Includes.rb +84 -0
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsExtends.rb +108 -0
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsIncludes.rb +84 -0
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set.rb +7 -0
- data/lib/module-cluster/{ModuleCluster → _private_/ModuleCluster}/ExtendForCascade.rb +0 -0
- data/spec/ModuleCluster/Define/Block/ClassOrInstance_spec.rb +230 -0
- data/spec/ModuleCluster/Define/Block/ClassOrModuleOrInstance_spec.rb +238 -0
- data/spec/ModuleCluster/Define/Block/ClassOrModule_spec.rb +231 -0
- data/spec/ModuleCluster/Define/Block/Class_spec.rb +224 -0
- data/spec/ModuleCluster/Define/Block/Instance_spec.rb +78 -0
- data/spec/ModuleCluster/Define/Block/ModuleOrInstance_spec.rb +54 -0
- data/spec/ModuleCluster/Define/Block/Module_spec.rb +224 -0
- data/spec/ModuleCluster/Define/Block_spec.rb +18 -0
- data/spec/ModuleCluster/Define/ClassCluster_spec.rb +728 -0
- data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +576 -0
- data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +298 -60
- data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +307 -61
- data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +335 -36
- data/spec/ModuleCluster/Define/Cluster_spec.rb +447 -14
- data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +102 -0
- data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +728 -0
- data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +728 -0
- data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +576 -0
- data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +278 -0
- metadata +42 -13
- data/lib/module-cluster/ModuleCluster/CascadeFeatures.rb +0 -197
- data/lib/module-cluster/ModuleCluster/ClusterStack/Block/Class.rb +0 -36
- data/lib/module-cluster/ModuleCluster/ClusterStack/Block/Module.rb +0 -36
- data/lib/module-cluster/ModuleCluster/ClusterStack/Extends.rb +0 -29
- data/lib/module-cluster/ModuleCluster/ClusterStack/Includes.rb +0 -28
- data/lib/module-cluster/ModuleCluster/ClusterStack/PrependsExtends.rb +0 -28
- data/lib/module-cluster/ModuleCluster/ClusterStack/PrependsIncludes.rb +0 -28
- data/lib/module-cluster/ModuleCluster/Define/ClusterStack.rb +0 -26
@@ -3,6 +3,16 @@ require_relative '../../../lib/module-cluster.rb'
|
|
3
3
|
|
4
4
|
describe ModuleCluster::Define::ClusterCascadesToClass do
|
5
5
|
|
6
|
+
##########################
|
7
|
+
# self.should_cascade? #
|
8
|
+
##########################
|
9
|
+
|
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
|
14
|
+
end
|
15
|
+
|
6
16
|
########################################
|
7
17
|
# include_cascades_includes_to_class #
|
8
18
|
########################################
|
@@ -16,18 +26,35 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
16
26
|
end
|
17
27
|
include_cascades_includes_to_class( Module1, Module2 )
|
18
28
|
respond_to?( :included ).should == true
|
19
|
-
module
|
29
|
+
module ModuleProof1
|
20
30
|
include ModuleCluster::Define::ClusterCascadesToClass::Mock01
|
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
|
21
34
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
22
35
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
23
36
|
end
|
24
|
-
|
25
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock01
|
37
|
+
class ClassProof
|
38
|
+
include ModuleCluster::Define::ClusterCascadesToClass::Mock01
|
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
|
44
|
+
end
|
45
|
+
module ModuleProof2
|
46
|
+
include ModuleCluster::Define::ClusterCascadesToClass::Mock01::ModuleProof1
|
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
|
26
50
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == false
|
27
51
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == false
|
28
52
|
end
|
29
|
-
class
|
30
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock01::
|
53
|
+
class ClassProof2
|
54
|
+
include ModuleCluster::Define::ClusterCascadesToClass::Mock01::ModuleProof1
|
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
|
31
58
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module1 ).should == true
|
32
59
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock01::Module2 ).should == true
|
33
60
|
end
|
@@ -47,20 +74,34 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
47
74
|
end
|
48
75
|
include_cascades_extends_to_class( Module1, Module2 )
|
49
76
|
respond_to?( :included ).should == true
|
50
|
-
module
|
77
|
+
module ModuleProof1
|
51
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
|
52
81
|
eigenclass = class << self ; self ; end
|
53
82
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
54
83
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
55
84
|
end
|
56
|
-
|
57
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock02
|
85
|
+
class ClassProof
|
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
|
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
|
92
|
+
end
|
93
|
+
module ModuleProof2
|
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
|
58
97
|
eigenclass = class << self ; self ; end
|
59
98
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == false
|
60
99
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == false
|
61
100
|
end
|
62
|
-
class
|
63
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock02::
|
101
|
+
class ClassProof2
|
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
|
64
105
|
eigenclass = class << self ; self ; end
|
65
106
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module1 ).should == true
|
66
107
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock02::Module2 ).should == true
|
@@ -81,7 +122,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
81
122
|
end
|
82
123
|
include_cascades_includes_and_extends_to_class( Module1, Module2 )
|
83
124
|
respond_to?( :included ).should == true
|
84
|
-
module
|
125
|
+
module ModuleProof1
|
85
126
|
include ModuleCluster::Define::ClusterCascadesToClass::Mock03
|
86
127
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
87
128
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
@@ -89,16 +130,24 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
89
130
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
90
131
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
91
132
|
end
|
92
|
-
|
93
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock03
|
133
|
+
class ClassProof
|
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
|
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
|
140
|
+
end
|
141
|
+
module ModuleProof2
|
142
|
+
include ModuleCluster::Define::ClusterCascadesToClass::Mock03::ModuleProof1
|
94
143
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
95
144
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
96
145
|
eigenclass = class << self ; self ; end
|
97
146
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == false
|
98
147
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == false
|
99
148
|
end
|
100
|
-
class
|
101
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock03::
|
149
|
+
class ClassProof2
|
150
|
+
include ModuleCluster::Define::ClusterCascadesToClass::Mock03::ModuleProof1
|
102
151
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module1 ).should == true
|
103
152
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock03::Module2 ).should == true
|
104
153
|
eigenclass = class << self ; self ; end
|
@@ -121,20 +170,49 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
121
170
|
end
|
122
171
|
extend_cascades_includes_to_class( Module1, Module2 )
|
123
172
|
respond_to?( :extended ).should == true
|
124
|
-
module
|
173
|
+
module ModuleProof1
|
125
174
|
extend ModuleCluster::Define::ClusterCascadesToClass::Mock04
|
126
175
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
127
176
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
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
|
180
|
+
end
|
181
|
+
class ClassProof
|
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
|
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
|
188
|
+
end
|
189
|
+
Object.new.instance_eval do
|
190
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock04::ModuleProof1
|
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
|
128
194
|
end
|
129
|
-
module
|
130
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock04::
|
195
|
+
module ModuleProof2
|
196
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock04::ModuleProof1
|
131
197
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == false
|
132
198
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == false
|
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
|
133
202
|
end
|
134
|
-
class
|
135
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock04::
|
203
|
+
class ClassProof2
|
204
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock04::ModuleProof1
|
136
205
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module1 ).should == true
|
137
206
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock04::Module2 ).should == true
|
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
|
210
|
+
end
|
211
|
+
Object.new.instance_eval do
|
212
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock04::ModuleProof1
|
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
|
138
216
|
end
|
139
217
|
end
|
140
218
|
end
|
@@ -152,24 +230,50 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
152
230
|
end
|
153
231
|
extend_cascades_extends_to_class( Module1, Module2 )
|
154
232
|
respond_to?( :extended ).should == true
|
155
|
-
module
|
233
|
+
module ModuleProof1
|
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
|
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
|
240
|
+
end
|
241
|
+
class ClassProof
|
156
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
|
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
|
248
|
+
end
|
249
|
+
Object.new.instance_eval do
|
250
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock05::ModuleProof1
|
157
251
|
eigenclass = class << self ; self ; end
|
158
252
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
159
253
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
160
254
|
end
|
161
|
-
module
|
162
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock05::
|
255
|
+
module ModuleProof2
|
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
|
163
259
|
eigenclass = class << self ; self ; end
|
164
260
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == false
|
165
261
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == false
|
166
262
|
end
|
167
|
-
class
|
168
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock05::
|
263
|
+
class ClassProof2
|
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
|
169
267
|
eigenclass = class << self ; self ; end
|
170
268
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module1 ).should == true
|
171
269
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock05::Module2 ).should == true
|
172
270
|
end
|
271
|
+
Object.new.instance_eval do
|
272
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock05::ModuleProof1
|
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
|
276
|
+
end
|
173
277
|
end
|
174
278
|
end
|
175
279
|
|
@@ -186,7 +290,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
186
290
|
end
|
187
291
|
extend_cascades_includes_and_extends_to_class( Module1, Module2 )
|
188
292
|
respond_to?( :extended ).should == true
|
189
|
-
module
|
293
|
+
module ModuleProof1
|
190
294
|
extend ModuleCluster::Define::ClusterCascadesToClass::Mock06
|
191
295
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
192
296
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
@@ -194,22 +298,42 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
194
298
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
195
299
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
196
300
|
end
|
197
|
-
|
198
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock06
|
301
|
+
class ClassProof
|
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
|
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
|
308
|
+
end
|
309
|
+
Object.new.instance_eval do
|
310
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock06::ModuleProof1
|
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
|
314
|
+
end
|
315
|
+
module ModuleProof2
|
316
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock06::ModuleProof1
|
199
317
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
200
318
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
201
319
|
eigenclass = class << self ; self ; end
|
202
320
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == false
|
203
321
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == false
|
204
322
|
end
|
205
|
-
class
|
206
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock06::
|
323
|
+
class ClassProof2
|
324
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock06::ModuleProof1
|
207
325
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == true
|
208
326
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == true
|
209
327
|
eigenclass = class << self ; self ; end
|
210
328
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module1 ).should == true
|
211
329
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock06::Module2 ).should == true
|
212
330
|
end
|
331
|
+
Object.new.instance_eval do
|
332
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock06::ModuleProof1
|
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
|
336
|
+
end
|
213
337
|
end
|
214
338
|
end
|
215
339
|
|
@@ -226,20 +350,37 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
226
350
|
end
|
227
351
|
include_cascades_to_class_prepending_includes( Module1, Module2 )
|
228
352
|
respond_to?( :append_features ).should == true
|
229
|
-
module
|
353
|
+
module ModuleProof1
|
230
354
|
include ModuleCluster::Define::ClusterCascadesToClass::Mock07
|
231
355
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
232
356
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
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
|
360
|
+
end
|
361
|
+
class ClassProof
|
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
|
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
|
233
368
|
end
|
234
|
-
module
|
235
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock07::
|
369
|
+
module ModuleProof2
|
370
|
+
include ModuleCluster::Define::ClusterCascadesToClass::Mock07::ModuleProof1
|
236
371
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == false
|
237
372
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == false
|
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
|
238
376
|
end
|
239
|
-
class
|
240
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock07::
|
377
|
+
class ClassProof2
|
378
|
+
include ModuleCluster::Define::ClusterCascadesToClass::Mock07::ModuleProof1
|
241
379
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module1 ).should == true
|
242
380
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock07::Module2 ).should == true
|
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
|
243
384
|
end
|
244
385
|
end
|
245
386
|
end
|
@@ -257,20 +398,34 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
257
398
|
end
|
258
399
|
include_cascades_to_class_prepending_extends( Module1, Module2 )
|
259
400
|
respond_to?( :append_features ).should == true
|
260
|
-
module
|
401
|
+
module ModuleProof1
|
261
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
|
262
405
|
eigenclass = class << self ; self ; end
|
263
406
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
264
407
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
265
408
|
end
|
266
|
-
|
267
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock08
|
409
|
+
class ClassProof
|
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
|
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
|
416
|
+
end
|
417
|
+
module ModuleProof2
|
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
|
268
421
|
eigenclass = class << self ; self ; end
|
269
422
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == false
|
270
423
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == false
|
271
424
|
end
|
272
|
-
class
|
273
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock08::
|
425
|
+
class ClassProof2
|
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
|
274
429
|
eigenclass = class << self ; self ; end
|
275
430
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module1 ).should == true
|
276
431
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock08::Module2 ).should == true
|
@@ -291,7 +446,7 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
291
446
|
end
|
292
447
|
include_cascades_to_class_prepending_includes_and_extends( Module1, Module2 )
|
293
448
|
respond_to?( :append_features ).should == true
|
294
|
-
module
|
449
|
+
module ModuleProof1
|
295
450
|
include ModuleCluster::Define::ClusterCascadesToClass::Mock09
|
296
451
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
297
452
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
@@ -299,16 +454,24 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
299
454
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
300
455
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
301
456
|
end
|
302
|
-
|
303
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock09
|
457
|
+
class ClassProof
|
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
|
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
|
464
|
+
end
|
465
|
+
module ModuleProof2
|
466
|
+
include ModuleCluster::Define::ClusterCascadesToClass::Mock09::ModuleProof1
|
304
467
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
305
468
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
306
469
|
eigenclass = class << self ; self ; end
|
307
470
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == false
|
308
471
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == false
|
309
472
|
end
|
310
|
-
class
|
311
|
-
include ModuleCluster::Define::ClusterCascadesToClass::Mock09::
|
473
|
+
class ClassProof2
|
474
|
+
include ModuleCluster::Define::ClusterCascadesToClass::Mock09::ModuleProof1
|
312
475
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module1 ).should == true
|
313
476
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock09::Module2 ).should == true
|
314
477
|
eigenclass = class << self ; self ; end
|
@@ -331,20 +494,49 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
331
494
|
end
|
332
495
|
extend_cascades_to_class_prepending_includes( Module1, Module2 )
|
333
496
|
respond_to?( :extend_object ).should == true
|
334
|
-
module
|
497
|
+
module ModuleProof1
|
335
498
|
extend ModuleCluster::Define::ClusterCascadesToClass::Mock10
|
336
499
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
337
500
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
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
|
338
504
|
end
|
339
|
-
|
340
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock10::
|
505
|
+
class ClassProof
|
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
|
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
|
512
|
+
end
|
513
|
+
Object.new.instance_eval do
|
514
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock10
|
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
|
518
|
+
end
|
519
|
+
module ModuleProof2
|
520
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock10::ModuleProof1
|
341
521
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == false
|
342
522
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == false
|
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
|
343
526
|
end
|
344
|
-
class
|
345
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock10::
|
527
|
+
class ClassProof2
|
528
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock10::ModuleProof1
|
346
529
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module1 ).should == true
|
347
530
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock10::Module2 ).should == true
|
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
|
534
|
+
end
|
535
|
+
Object.new.instance_eval do
|
536
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock10::ModuleProof1
|
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
|
348
540
|
end
|
349
541
|
end
|
350
542
|
end
|
@@ -362,24 +554,50 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
362
554
|
end
|
363
555
|
extend_cascades_to_class_prepending_extends( Module1, Module2 )
|
364
556
|
respond_to?( :extend_object ).should == true
|
365
|
-
module
|
557
|
+
module ModuleProof1
|
366
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
|
367
561
|
eigenclass = class << self ; self ; end
|
368
562
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
369
563
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
370
564
|
end
|
371
|
-
|
372
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock11
|
565
|
+
class ClassProof
|
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
|
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
|
572
|
+
end
|
573
|
+
Object.new.instance_eval do
|
574
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock11::ModuleProof1
|
373
575
|
eigenclass = class << self ; self ; end
|
374
576
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == false
|
375
577
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == false
|
376
578
|
end
|
377
|
-
|
378
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock11::
|
579
|
+
module ModuleProof2
|
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
|
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
|
586
|
+
end
|
587
|
+
class ClassProof2
|
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
|
379
591
|
eigenclass = class << self ; self ; end
|
380
592
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module1 ).should == true
|
381
593
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock11::Module2 ).should == true
|
382
594
|
end
|
595
|
+
Object.new.instance_eval do
|
596
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock11::ModuleProof1
|
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
|
600
|
+
end
|
383
601
|
end
|
384
602
|
end
|
385
603
|
|
@@ -396,25 +614,45 @@ describe ModuleCluster::Define::ClusterCascadesToClass do
|
|
396
614
|
end
|
397
615
|
extend_cascades_to_class_prepending_includes_and_extends( Module1, Module2 )
|
398
616
|
respond_to?( :extend_object ).should == true
|
399
|
-
module
|
617
|
+
module ModuleProof1
|
400
618
|
extend ModuleCluster::Define::ClusterCascadesToClass::Mock12
|
401
619
|
end
|
402
|
-
|
403
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock12
|
620
|
+
class ClassProof
|
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
|
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
|
627
|
+
end
|
628
|
+
Object.new.instance_eval do
|
629
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock12::ModuleProof1
|
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
|
633
|
+
end
|
634
|
+
module ModuleProof2
|
635
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock12::ModuleProof1
|
404
636
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == false
|
405
637
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == false
|
406
638
|
eigenclass = class << self ; self ; end
|
407
639
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == false
|
408
640
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == false
|
409
641
|
end
|
410
|
-
class
|
411
|
-
extend ModuleCluster::Define::ClusterCascadesToClass::Mock12::
|
642
|
+
class ClassProof2
|
643
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock12::ModuleProof1
|
412
644
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == true
|
413
645
|
ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == true
|
414
646
|
eigenclass = class << self ; self ; end
|
415
647
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module1 ).should == true
|
416
648
|
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToClass::Mock12::Module2 ).should == true
|
417
649
|
end
|
650
|
+
Object.new.instance_eval do
|
651
|
+
extend ModuleCluster::Define::ClusterCascadesToClass::Mock12::ModuleProof1
|
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
|
655
|
+
end
|
418
656
|
end
|
419
657
|
end
|
420
658
|
|