module-cluster 1.4.8 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/README.md +127 -337
  2. data/lib/module-cluster.rb +1 -153
  3. data/lib/module/cluster.rb +341 -0
  4. data/lib/module/cluster/class_support.rb +22 -0
  5. data/lib/module/cluster/cluster.rb +10 -0
  6. data/lib/module/cluster/cluster/cluster_interface.rb +550 -0
  7. data/lib/module/cluster/exception/module_not_in_stack.rb +26 -0
  8. data/lib/module/cluster/instance_controller.rb +14 -0
  9. data/lib/module/cluster/instance_controller/hook_controller.rb +33 -0
  10. data/lib/module/cluster/instance_controller/hook_controller/chain_proxy.rb +511 -0
  11. data/lib/module/cluster/instance_controller/hook_controller/hook_controller_interface.rb +830 -0
  12. data/lib/module/cluster/instance_controller/instance_controller_interface.rb +269 -0
  13. data/lib/module/cluster/instance_controller/multiple_hook_controller_proxy.rb +359 -0
  14. data/lib/module/cluster/instance_controller/multiple_hook_controller_proxy/chain_proxy.rb +442 -0
  15. data/lib/module/cluster/module_support.rb +67 -0
  16. data/lib/module/namespaces.rb +13 -0
  17. data/lib/module/requires.rb +32 -0
  18. data/spec/module/cluster/cluster_spec.rb +473 -0
  19. data/spec/module/cluster/instance_controller/hook_controller_spec.rb +922 -0
  20. data/spec/module/cluster/instance_controller/multiple_hook_controller_proxy_spec.rb +1240 -0
  21. data/spec/module/cluster_spec.rb +1794 -0
  22. metadata +27 -98
  23. data/README.rdoc +0 -395
  24. data/lib/module-cluster/ModuleCluster.rb +0 -9
  25. data/lib/module-cluster/ModuleCluster/Define.rb +0 -12
  26. data/lib/module-cluster/ModuleCluster/Define/Block.rb +0 -9
  27. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClass.rb +0 -83
  28. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClassOrModule.rb +0 -70
  29. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModule.rb +0 -79
  30. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModuleOrSubclass.rb +0 -21
  31. data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +0 -77
  32. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +0 -78
  33. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +0 -78
  34. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +0 -78
  35. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrSubclass.rb +0 -36
  36. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrSubclass.rb +0 -29
  37. data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +0 -45
  38. data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +0 -77
  39. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +0 -78
  40. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrSubclass.rb +0 -29
  41. data/lib/module-cluster/ModuleCluster/Define/Block/Subclass.rb +0 -56
  42. data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +0 -193
  43. data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +0 -128
  44. data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +0 -181
  45. data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +0 -185
  46. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +0 -181
  47. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +0 -181
  48. data/lib/module-cluster/ModuleCluster/Define/Deprecated.rb +0 -40
  49. data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +0 -45
  50. data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +0 -193
  51. data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +0 -209
  52. data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +0 -128
  53. data/lib/module-cluster/ModuleCluster/Define/Status.rb +0 -106
  54. data/lib/module-cluster/ModuleCluster/Suspend.rb +0 -7
  55. data/lib/module-cluster/ModuleCluster/Suspend/Hooks.rb +0 -315
  56. data/lib/module-cluster/ModuleCluster/Suspend/WithoutHooks.rb +0 -153
  57. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +0 -77
  58. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/ClusterStack.rb +0 -44
  59. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/PerformCascades.rb +0 -292
  60. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/Subclass.rb +0 -24
  61. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack.rb +0 -12
  62. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block.rb +0 -9
  63. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Class.rb +0 -36
  64. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Inherited.rb +0 -20
  65. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Instance.rb +0 -20
  66. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Module.rb +0 -36
  67. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Set.rb +0 -6
  68. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Extends.rb +0 -140
  69. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Includes.rb +0 -110
  70. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsExtends.rb +0 -140
  71. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsIncludes.rb +0 -110
  72. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set.rb +0 -35
  73. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy.rb +0 -359
  74. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Status.rb +0 -55
  75. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Suspend.rb +0 -199
  76. data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +0 -34
  77. data/spec/ModuleCluster/Define/Block/CascadingClassOrModule_spec.rb +0 -285
  78. data/spec/ModuleCluster/Define/Block/CascadingClass_spec.rb +0 -254
  79. data/spec/ModuleCluster/Define/Block/CascadingModuleOrSubclass_spec.rb +0 -56
  80. data/spec/ModuleCluster/Define/Block/CascadingModule_spec.rb +0 -278
  81. data/spec/ModuleCluster/Define/Block/ClassOrInstance_spec.rb +0 -230
  82. data/spec/ModuleCluster/Define/Block/ClassOrModuleOrInstance_spec.rb +0 -238
  83. data/spec/ModuleCluster/Define/Block/ClassOrModuleOrSubclass_spec.rb +0 -54
  84. data/spec/ModuleCluster/Define/Block/ClassOrModule_spec.rb +0 -231
  85. data/spec/ModuleCluster/Define/Block/ClassOrSubclass_spec.rb +0 -54
  86. data/spec/ModuleCluster/Define/Block/Class_spec.rb +0 -224
  87. data/spec/ModuleCluster/Define/Block/Instance_spec.rb +0 -78
  88. data/spec/ModuleCluster/Define/Block/ModuleOrInstance_spec.rb +0 -54
  89. data/spec/ModuleCluster/Define/Block/ModuleOrSubclass_spec.rb +0 -51
  90. data/spec/ModuleCluster/Define/Block/Module_spec.rb +0 -230
  91. data/spec/ModuleCluster/Define/Block/Subclass_spec.rb +0 -73
  92. data/spec/ModuleCluster/Define/Block_spec.rb +0 -18
  93. data/spec/ModuleCluster/Define/ClassCluster_spec.rb +0 -728
  94. data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +0 -576
  95. data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +0 -659
  96. data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +0 -678
  97. data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +0 -644
  98. data/spec/ModuleCluster/Define/Cluster_spec.rb +0 -708
  99. data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +0 -102
  100. data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +0 -728
  101. data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +0 -728
  102. data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +0 -576
  103. data/spec/ModuleCluster/Suspend/Hooks_spec.rb +0 -573
  104. data/spec/ModuleCluster/Suspend/WithoutHooks_spec.rb +0 -559
  105. data/spec/ModuleCluster_spec.rb +0 -15
  106. data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +0 -386
  107. data/spec/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy_spec.rb +0 -419
  108. data/spec/_private_/ModuleCluster/ClusterStack/Suspend_spec.rb +0 -242
@@ -1,708 +0,0 @@
1
-
2
- require_relative '../../../lib/module-cluster.rb'
3
-
4
- describe ::ModuleCluster::Define::Cluster do
5
-
6
- ###########################
7
- # include_also_includes #
8
- ###########################
9
-
10
- it 'include other modules when this one is included' do
11
- module ::ModuleCluster::Define::Cluster::Mock01
12
- extend ::ModuleCluster::Define::Cluster
13
- module Module1
14
- end
15
- module Module2
16
- end
17
- include_also_includes( Module1, Module2 ).name = :some_name
18
- respond_to?( :included ).should == true
19
- module ModuleProof
20
- include ::ModuleCluster::Define::Cluster::Mock01
21
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module1 ).should == true
22
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module2 ).should == true
23
- eigenclass = class << self ; self ; end
24
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module1 ).should == false
25
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module2 ).should == false
26
- end
27
- class ClassProof
28
- include ::ModuleCluster::Define::Cluster::Mock01
29
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module1 ).should == true
30
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module2 ).should == true
31
- eigenclass = class << self ; self ; end
32
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module1 ).should == false
33
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module2 ).should == false
34
- end
35
- end
36
- end
37
-
38
- ##########################
39
- # include_also_extends #
40
- ##########################
41
-
42
- it 'extend other modules when this one is included' do
43
- module ::ModuleCluster::Define::Cluster::Mock02
44
- extend ::ModuleCluster::Define::Cluster
45
- module Module1
46
- end
47
- module Module2
48
- end
49
- include_also_extends( Module1, Module2 ).name = :some_name
50
- respond_to?( :included ).should == true
51
- module ModuleProof
52
- include ::ModuleCluster::Define::Cluster::Mock02
53
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module1 ).should == false
54
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module2 ).should == false
55
- eigenclass = class << self ; self ; end
56
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module1 ).should == true
57
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module2 ).should == true
58
- end
59
- class ClassProof
60
- include ::ModuleCluster::Define::Cluster::Mock02
61
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module1 ).should == false
62
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module2 ).should == false
63
- eigenclass = class << self ; self ; end
64
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module1 ).should == true
65
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module2 ).should == true
66
- end
67
- end
68
- end
69
-
70
- #######################################
71
- # include_also_includes_and_extends #
72
- #######################################
73
-
74
- it 'include and extend other modules when this one is included' do
75
- module ::ModuleCluster::Define::Cluster::Mock03
76
- extend ::ModuleCluster::Define::Cluster
77
- module Module1
78
- end
79
- module Module2
80
- end
81
- include_also_includes_and_extends( Module1, Module2 ).name = :some_name
82
- respond_to?( :included ).should == true
83
- module ModuleProof
84
- include ::ModuleCluster::Define::Cluster::Mock03
85
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
86
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
87
- eigenclass = class << self ; self ; end
88
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
89
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
90
- end
91
- class ClassProof
92
- include ::ModuleCluster::Define::Cluster::Mock03
93
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
94
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
95
- eigenclass = class << self ; self ; end
96
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
97
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
98
- end
99
- end
100
- end
101
-
102
- ##########################
103
- # extend_also_includes #
104
- ##########################
105
-
106
- it 'include other modules when this one is extended' do
107
- module ::ModuleCluster::Define::Cluster::Mock04
108
- extend ::ModuleCluster::Define::Cluster
109
- module Module1
110
- end
111
- module Module2
112
- end
113
- extend_also_includes( Module1, Module2 ).name = :some_name
114
- respond_to?( :extended ).should == true
115
- module ModuleProof
116
- extend ::ModuleCluster::Define::Cluster::Mock04
117
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module1 ).should == true
118
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module2 ).should == true
119
- eigenclass = class << self ; self ; end
120
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module1 ).should == false
121
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module2 ).should == false
122
- end
123
- class ClassProof
124
- extend ::ModuleCluster::Define::Cluster::Mock04
125
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module1 ).should == true
126
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module2 ).should == true
127
- eigenclass = class << self ; self ; end
128
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module1 ).should == false
129
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module2 ).should == false
130
- end
131
- end
132
- end
133
-
134
- #########################
135
- # extend_also_extends #
136
- #########################
137
-
138
- it 'extend other modules when this one is extended' do
139
- module ::ModuleCluster::Define::Cluster::Mock05
140
- extend ::ModuleCluster::Define::Cluster
141
- module Module1
142
- end
143
- module Module2
144
- end
145
- extend_also_extends( Module1, Module2 ).name = :some_name
146
- respond_to?( :extended ).should == true
147
- module ModuleProof
148
- extend ::ModuleCluster::Define::Cluster::Mock05
149
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module1 ).should == false
150
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module2 ).should == false
151
- eigenclass = class << self ; self ; end
152
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module1 ).should == true
153
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
154
- end
155
- class ClassProof
156
- extend ::ModuleCluster::Define::Cluster::Mock05
157
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module1 ).should == false
158
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module2 ).should == false
159
- eigenclass = class << self ; self ; end
160
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module1 ).should == true
161
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
162
- end
163
- Object.new.instance_eval do
164
- extend ::ModuleCluster::Define::Cluster::Mock05
165
- eigenclass = class << self ; self ; end
166
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module1 ).should == true
167
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
168
- end
169
- end
170
- end
171
-
172
- ######################################
173
- # extend_also_includes_and_extends #
174
- ######################################
175
-
176
- it 'include and extend other modules when this one is extended' do
177
- module ::ModuleCluster::Define::Cluster::Mock06
178
- extend ::ModuleCluster::Define::Cluster
179
- module Module1
180
- end
181
- module Module2
182
- end
183
- extend_also_includes_and_extends( Module1, Module2 ).name = :some_name
184
- respond_to?( :extended ).should == true
185
- module ModuleProof
186
- extend ::ModuleCluster::Define::Cluster::Mock06
187
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
188
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
189
- eigenclass = class << self ; self ; end
190
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
191
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
192
- end
193
- class ClassProof
194
- extend ::ModuleCluster::Define::Cluster::Mock06
195
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
196
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
197
- eigenclass = class << self ; self ; end
198
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
199
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
200
- end
201
- Object.new.instance_eval do
202
- extend ::ModuleCluster::Define::Cluster::Mock06
203
- eigenclass = class << self ; self ; end
204
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
205
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
206
- end
207
- end
208
- end
209
-
210
- ###############################
211
- # include_prepends_includes #
212
- ###############################
213
-
214
- it 'include other modules before this one is included' do
215
- module ::ModuleCluster::Define::Cluster::Mock07
216
- extend ::ModuleCluster::Define::Cluster
217
- module Module1
218
- end
219
- module Module2
220
- end
221
- include_prepends_includes( Module1, Module2 ).name = :some_name
222
- respond_to?( :append_features ).should == true
223
- module ModuleProof
224
- include ::ModuleCluster::Define::Cluster::Mock07
225
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module1 ).should == true
226
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module2 ).should == true
227
- eigenclass = class << self ; self ; end
228
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module1 ).should == false
229
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module2 ).should == false
230
- end
231
- class ClassProof
232
- include ::ModuleCluster::Define::Cluster::Mock07
233
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module1 ).should == true
234
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module2 ).should == true
235
- eigenclass = class << self ; self ; end
236
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module1 ).should == false
237
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module2 ).should == false
238
- end
239
- end
240
- end
241
-
242
- ##############################
243
- # include_prepends_extends #
244
- ##############################
245
-
246
- it 'extend other modules before this one is included' do
247
- module ::ModuleCluster::Define::Cluster::Mock08
248
- extend ::ModuleCluster::Define::Cluster
249
- module Module1
250
- end
251
- module Module2
252
- end
253
- include_prepends_extends( Module1, Module2 ).name = :some_name
254
- respond_to?( :append_features ).should == true
255
- module ModuleProof
256
- include ::ModuleCluster::Define::Cluster::Mock08
257
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module1 ).should == false
258
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module2 ).should == false
259
- eigenclass = class << self ; self ; end
260
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module1 ).should == true
261
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module2 ).should == true
262
- end
263
- class ClassProof
264
- include ::ModuleCluster::Define::Cluster::Mock08
265
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module1 ).should == false
266
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module2 ).should == false
267
- eigenclass = class << self ; self ; end
268
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module1 ).should == true
269
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module2 ).should == true
270
- end
271
- end
272
- end
273
-
274
- ###########################################
275
- # include_prepends_includes_and_extends #
276
- ###########################################
277
-
278
- it 'include and extend other modules before this one is included' do
279
- module ::ModuleCluster::Define::Cluster::Mock09
280
- extend ::ModuleCluster::Define::Cluster
281
- module Module1
282
- end
283
- module Module2
284
- end
285
- include_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
286
- respond_to?( :append_features ).should == true
287
- module ModuleProof
288
- include ::ModuleCluster::Define::Cluster::Mock09
289
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
290
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
291
- eigenclass = class << self ; self ; end
292
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
293
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
294
- end
295
- class ClassProof
296
- include ::ModuleCluster::Define::Cluster::Mock09
297
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
298
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
299
- eigenclass = class << self ; self ; end
300
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
301
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
302
- end
303
- end
304
- end
305
-
306
- ##############################
307
- # extend_prepends_includes #
308
- ##############################
309
-
310
- it 'include other modules before this one is extended' do
311
- module ::ModuleCluster::Define::Cluster::Mock10
312
- extend ::ModuleCluster::Define::Cluster
313
- module Module1
314
- end
315
- module Module2
316
- end
317
- extend_prepends_includes( Module1, Module2 ).name = :some_name
318
- respond_to?( :extend_object ).should == true
319
- module ModuleProof
320
- extend ::ModuleCluster::Define::Cluster::Mock10
321
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module1 ).should == true
322
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module2 ).should == true
323
- eigenclass = class << self ; self ; end
324
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module1 ).should == false
325
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module2 ).should == false
326
- end
327
- class ClassProof
328
- extend ::ModuleCluster::Define::Cluster::Mock10
329
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module1 ).should == true
330
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module2 ).should == true
331
- eigenclass = class << self ; self ; end
332
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module1 ).should == false
333
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module2 ).should == false
334
- end
335
- end
336
- end
337
-
338
- #############################
339
- # extend_prepends_extends #
340
- #############################
341
-
342
- it 'extend other modules before this one is extended' do
343
- module ::ModuleCluster::Define::Cluster::Mock11
344
- extend ::ModuleCluster::Define::Cluster
345
- module Module1
346
- end
347
- module Module2
348
- end
349
- extend_prepends_extends( Module1, Module2 ).name = :some_name
350
- respond_to?( :extend_object ).should == true
351
- module ModuleProof
352
- extend ::ModuleCluster::Define::Cluster::Mock11
353
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module1 ).should == false
354
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module2 ).should == false
355
- eigenclass = class << self ; self ; end
356
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module1 ).should == true
357
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
358
- end
359
- class ClassProof
360
- extend ::ModuleCluster::Define::Cluster::Mock11
361
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module1 ).should == false
362
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module2 ).should == false
363
- eigenclass = class << self ; self ; end
364
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module1 ).should == true
365
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
366
- end
367
- Object.new.instance_eval do
368
- extend ::ModuleCluster::Define::Cluster::Mock11
369
- eigenclass = class << self ; self ; end
370
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module1 ).should == true
371
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
372
- end
373
- end
374
- end
375
-
376
- ##########################################
377
- # extend_prepends_includes_and_extends #
378
- ##########################################
379
-
380
- it 'include and extend other modules before this one is extended' do
381
- module ::ModuleCluster::Define::Cluster::Mock12
382
- extend ::ModuleCluster::Define::Cluster
383
- module Module1
384
- end
385
- module Module2
386
- end
387
- extend_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
388
- respond_to?( :extend_object ).should == true
389
- module ModuleProof
390
- extend ::ModuleCluster::Define::Cluster::Mock12
391
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
392
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
393
- eigenclass = class << self ; self ; end
394
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
395
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
396
- end
397
- class ClassProof
398
- extend ::ModuleCluster::Define::Cluster::Mock12
399
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
400
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
401
- eigenclass = class << self ; self ; end
402
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
403
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
404
- end
405
- Object.new.instance_eval do
406
- extend ::ModuleCluster::Define::Cluster::Mock12
407
- eigenclass = class << self ; self ; end
408
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
409
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
410
- end
411
- end
412
- end
413
-
414
- #####################################
415
- # include_or_extend_also_includes #
416
- #####################################
417
-
418
- it 'can include other modules when this one is included in or extends a class' do
419
- module ::ModuleCluster::Define::Cluster::Mock13
420
- extend ::ModuleCluster::Define::Cluster
421
- module Module1
422
- end
423
- module Module2
424
- end
425
- include_or_extend_also_includes( Module1, Module2 ).name = :some_name
426
- respond_to?( :append_features ).should == true
427
- module ModuleProof
428
- include ::ModuleCluster::Define::Cluster::Mock13
429
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
430
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
431
- eigenclass = class << self ; self ; end
432
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
433
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
434
- end
435
- module ModuleProof2
436
- extend ::ModuleCluster::Define::Cluster::Mock13
437
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
438
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
439
- eigenclass = class << self ; self ; end
440
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
441
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
442
- end
443
- class ClassProof
444
- include ::ModuleCluster::Define::Cluster::Mock13
445
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
446
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
447
- eigenclass = class << self ; self ; end
448
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
449
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
450
- end
451
- class ClassProof2
452
- include ::ModuleCluster::Define::Cluster::Mock13
453
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
454
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
455
- eigenclass = class << self ; self ; end
456
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
457
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
458
- end
459
- end
460
- end
461
-
462
- ####################################
463
- # include_or_extend_also_extends #
464
- ####################################
465
-
466
- it 'can extend other modules when this one is included in or extends a class' do
467
- module ::ModuleCluster::Define::Cluster::Mock14
468
- extend ::ModuleCluster::Define::Cluster
469
- module Module1
470
- end
471
- module Module2
472
- end
473
- include_or_extend_also_extends( Module1, Module2 ).name = :some_name
474
- respond_to?( :included ).should == true
475
- module ModuleProof
476
- include ::ModuleCluster::Define::Cluster::Mock14
477
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
478
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
479
- eigenclass = class << self ; self ; end
480
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
481
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
482
- end
483
- module ModuleProof2
484
- extend ::ModuleCluster::Define::Cluster::Mock14
485
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
486
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
487
- eigenclass = class << self ; self ; end
488
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
489
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
490
- end
491
- class ClassProof
492
- include ::ModuleCluster::Define::Cluster::Mock14
493
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
494
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
495
- eigenclass = class << self ; self ; end
496
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
497
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
498
- end
499
- class ClassProof2
500
- extend ::ModuleCluster::Define::Cluster::Mock14
501
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
502
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
503
- eigenclass = class << self ; self ; end
504
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
505
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
506
- end
507
- end
508
- end
509
-
510
- #################################################
511
- # include_or_extend_also_includes_and_extends #
512
- #################################################
513
-
514
- it 'can include and extend other modules when this one is included in or extends a class' do
515
- module ::ModuleCluster::Define::Cluster::Mock15
516
- extend ::ModuleCluster::Define::Cluster
517
- module Module1
518
- end
519
- module Module2
520
- end
521
- include_or_extend_also_includes_and_extends( Module1, Module2 ).name = :some_name
522
- respond_to?( :included ).should == true
523
- module ModuleProof
524
- include ::ModuleCluster::Define::Cluster::Mock15
525
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
526
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
527
- eigenclass = class << self ; self ; end
528
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
529
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
530
- end
531
- module ModuleProo2
532
- extend ::ModuleCluster::Define::Cluster::Mock15
533
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
534
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
535
- eigenclass = class << self ; self ; end
536
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
537
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
538
- end
539
- class ClassProof
540
- include ::ModuleCluster::Define::Cluster::Mock15
541
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
542
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
543
- eigenclass = class << self ; self ; end
544
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
545
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
546
- end
547
- class ClassProof2
548
- extend ::ModuleCluster::Define::Cluster::Mock15
549
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
550
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
551
- eigenclass = class << self ; self ; end
552
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
553
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
554
- end
555
- end
556
- end
557
-
558
- #########################################
559
- # include_or_extend_prepends_includes #
560
- #########################################
561
-
562
- it 'can include other modules before this one when this one is included in or extends a class' do
563
- module ::ModuleCluster::Define::Cluster::Mock16
564
- extend ::ModuleCluster::Define::Cluster
565
- module Module1
566
- end
567
- module Module2
568
- end
569
- include_or_extend_prepends_includes( Module1, Module2 ).name = :some_name
570
- respond_to?( :append_features ).should == true
571
- module ModuleProof
572
- include ::ModuleCluster::Define::Cluster::Mock16
573
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
574
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
575
- eigenclass = class << self ; self ; end
576
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
577
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
578
- end
579
- module ModuleProof2
580
- extend ::ModuleCluster::Define::Cluster::Mock16
581
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
582
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
583
- eigenclass = class << self ; self ; end
584
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
585
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
586
- end
587
- class ClassProof
588
- include ::ModuleCluster::Define::Cluster::Mock16
589
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
590
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
591
- eigenclass = class << self ; self ; end
592
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
593
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
594
- end
595
- class ClassProof2
596
- extend ::ModuleCluster::Define::Cluster::Mock16
597
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
598
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
599
- eigenclass = class << self ; self ; end
600
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
601
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
602
- end
603
- end
604
- end
605
-
606
- ########################################
607
- # include_or_extend_prepends_extends #
608
- ########################################
609
-
610
- it 'can extend other modules before this one when this one is included in or extends a class' do
611
- module ::ModuleCluster::Define::Cluster::Mock17
612
- extend ::ModuleCluster::Define::Cluster
613
- module Module1
614
- end
615
- module Module2
616
- end
617
- include_or_extend_prepends_extends( Module1, Module2 ).name = :some_name
618
- respond_to?( :extend_object ).should == true
619
- module ModuleProof
620
- include ::ModuleCluster::Define::Cluster::Mock17
621
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
622
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
623
- eigenclass = class << self ; self ; end
624
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
625
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
626
- end
627
- module ModuleProof2
628
- extend ::ModuleCluster::Define::Cluster::Mock17
629
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
630
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
631
- eigenclass = class << self ; self ; end
632
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
633
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
634
- end
635
- class ClassProof
636
- include ::ModuleCluster::Define::Cluster::Mock17
637
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
638
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
639
- eigenclass = class << self ; self ; end
640
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
641
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
642
- end
643
- class ClassProof2
644
- extend ::ModuleCluster::Define::Cluster::Mock17
645
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
646
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
647
- eigenclass = class << self ; self ; end
648
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
649
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
650
- end
651
- Object.new.instance_eval do
652
- extend ::ModuleCluster::Define::Cluster::Mock17
653
- eigenclass = class << self ; self ; end
654
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
655
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
656
- end
657
- end
658
- end
659
-
660
- #####################################################
661
- # include_or_extend_prepends_includes_and_extends #
662
- #####################################################
663
-
664
- it 'can include and extend other modules before this one when this one is included in or extends a class' do
665
- module ::ModuleCluster::Define::Cluster::Mock18
666
- extend ::ModuleCluster::Define::Cluster
667
- module Module1
668
- end
669
- module Module2
670
- end
671
- include_or_extend_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
672
- respond_to?( :append_features ).should == true
673
- module ModuleProof
674
- include ::ModuleCluster::Define::Cluster::Mock18
675
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
676
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
677
- eigenclass = class << self ; self ; end
678
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
679
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
680
- end
681
- module ModuleProof2
682
- extend ::ModuleCluster::Define::Cluster::Mock18
683
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
684
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
685
- eigenclass = class << self ; self ; end
686
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
687
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
688
- end
689
- class ClassProof
690
- include ::ModuleCluster::Define::Cluster::Mock18
691
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
692
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
693
- eigenclass = class << self ; self ; end
694
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
695
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
696
- end
697
- class ClassProof2
698
- extend ::ModuleCluster::Define::Cluster::Mock18
699
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
700
- ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
701
- eigenclass = class << self ; self ; end
702
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
703
- eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
704
- end
705
- end
706
- end
707
-
708
- end