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,644 +0,0 @@
1
-
2
- require_relative '../../../lib/module-cluster.rb'
3
-
4
- describe ::ModuleCluster::Define::ClusterCascades do
5
-
6
- ##########################
7
- # self.should_cascade? #
8
- ##########################
9
-
10
- it 'should cascade to any object' do
11
- ::ModuleCluster::Define::ClusterCascades.should_cascade?( Kernel ).should == true
12
- ::ModuleCluster::Define::ClusterCascades.should_cascade?( Class ).should == true
13
- ::ModuleCluster::Define::ClusterCascades.should_cascade?( Object.new ).should == true
14
- end
15
-
16
- ###############################
17
- # include_cascades_includes #
18
- ###############################
19
-
20
- it 'include modules for any class or module this module is included in' do
21
- module ::ModuleCluster::Define::ClusterCascades::Mock01
22
- extend ::ModuleCluster::Define::ClusterCascades
23
- module Module1
24
- end
25
- module Module2
26
- end
27
- include_cascades_includes( Module1, Module2 ).name = :some_name
28
- respond_to?( :included ).should == true
29
- module ModuleProof1
30
- include ::ModuleCluster::Define::ClusterCascades::Mock01
31
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
32
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
33
- eigenclass = class << self ; self ; end
34
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
35
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
36
- end
37
- class ClassProof
38
- include ::ModuleCluster::Define::ClusterCascades::Mock01
39
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
40
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
41
- eigenclass = class << self ; self ; end
42
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
43
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
44
- end
45
- module ModuleProof2
46
- include ::ModuleCluster::Define::ClusterCascades::Mock01::ModuleProof1
47
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
48
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
49
- eigenclass = class << self ; self ; end
50
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
51
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
52
- end
53
- class ClassProof2
54
- include ::ModuleCluster::Define::ClusterCascades::Mock01::ModuleProof1
55
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
56
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
57
- eigenclass = class << self ; self ; end
58
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
59
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
60
- end
61
- end
62
- end
63
-
64
- ##############################
65
- # include_cascades_extends #
66
- ##############################
67
-
68
- it 'extends modules for any class or module this module is included in' do
69
- module ::ModuleCluster::Define::ClusterCascades::Mock02
70
- extend ::ModuleCluster::Define::ClusterCascades
71
- module Module1
72
- end
73
- module Module2
74
- end
75
- include_cascades_extends( Module1, Module2 ).name = :some_name
76
- respond_to?( :included ).should == true
77
- module ModuleProof1
78
- include ::ModuleCluster::Define::ClusterCascades::Mock02
79
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
80
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
81
- eigenclass = class << self ; self ; end
82
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
83
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
84
- end
85
- class ClassProof
86
- include ::ModuleCluster::Define::ClusterCascades::Mock02
87
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
88
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
89
- eigenclass = class << self ; self ; end
90
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
91
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
92
- end
93
- module ModuleProof2
94
- include ::ModuleCluster::Define::ClusterCascades::Mock02::ModuleProof1
95
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
96
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
97
- eigenclass = class << self ; self ; end
98
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
99
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
100
- end
101
- class ClassProof2
102
- include ::ModuleCluster::Define::ClusterCascades::Mock02::ModuleProof1
103
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
104
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
105
- eigenclass = class << self ; self ; end
106
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
107
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
108
- end
109
- end
110
- end
111
-
112
- ###########################################
113
- # include_cascades_includes_and_extends #
114
- ###########################################
115
-
116
- it 'include and extends modules for any class or module this module is included in' do
117
- module ::ModuleCluster::Define::ClusterCascades::Mock03
118
- extend ::ModuleCluster::Define::ClusterCascades
119
- module Module1
120
- end
121
- module Module2
122
- end
123
- include_cascades_includes_and_extends( Module1, Module2 ).name = :some_name
124
- respond_to?( :included ).should == true
125
- module ModuleProof1
126
- include ::ModuleCluster::Define::ClusterCascades::Mock03
127
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
128
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
129
- eigenclass = class << self ; self ; end
130
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
131
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
132
- end
133
- class ClassProof
134
- include ::ModuleCluster::Define::ClusterCascades::Mock03
135
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
136
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
137
- eigenclass = class << self ; self ; end
138
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
139
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
140
- end
141
- module ModuleProof2
142
- include ::ModuleCluster::Define::ClusterCascades::Mock03::ModuleProof1
143
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
144
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
145
- eigenclass = class << self ; self ; end
146
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
147
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
148
- end
149
- class ClassProof2
150
- include ::ModuleCluster::Define::ClusterCascades::Mock03::ModuleProof1
151
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
152
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
153
- eigenclass = class << self ; self ; end
154
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
155
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
156
- end
157
- end
158
- end
159
-
160
- ##############################
161
- # extend_cascades_includes #
162
- ##############################
163
-
164
- it 'include modules for any class or module this module is extended in' do
165
- module ::ModuleCluster::Define::ClusterCascades::Mock04
166
- extend ::ModuleCluster::Define::ClusterCascades
167
- module Module1
168
- end
169
- module Module2
170
- end
171
- extend_cascades_includes( Module1, Module2 ).name = :some_name
172
- respond_to?( :extended ).should == true
173
- module ModuleProof1
174
- extend ::ModuleCluster::Define::ClusterCascades::Mock04
175
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
176
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
177
- eigenclass = class << self ; self ; end
178
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == false
179
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == false
180
- end
181
- class ClassProof
182
- extend ::ModuleCluster::Define::ClusterCascades::Mock04
183
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
184
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
185
- eigenclass = class << self ; self ; end
186
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == false
187
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == false
188
- end
189
- module ModuleProof2
190
- extend ::ModuleCluster::Define::ClusterCascades::Mock04::ModuleProof1
191
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
192
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
193
- eigenclass = class << self ; self ; end
194
- # true by ancestors
195
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
196
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
197
- end
198
- class ClassProof2
199
- extend ::ModuleCluster::Define::ClusterCascades::Mock04::ModuleProof1
200
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
201
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
202
- eigenclass = class << self ; self ; end
203
- # true by ancestors
204
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
205
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
206
- end
207
- end
208
- end
209
-
210
- #############################
211
- # extend_cascades_extends #
212
- #############################
213
-
214
- it 'extend modules for any class or module this module is extended in' do
215
- module ::ModuleCluster::Define::ClusterCascades::Mock05
216
- extend ::ModuleCluster::Define::ClusterCascades
217
- module Module1
218
- end
219
- module Module2
220
- end
221
- extend_cascades_extends( Module1, Module2 ).name = :some_name
222
- respond_to?( :extended ).should == true
223
- module ModuleProof1
224
- extend ::ModuleCluster::Define::ClusterCascades::Mock05
225
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
226
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
227
- eigenclass = class << self ; self ; end
228
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
229
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
230
- end
231
- class ClassProof
232
- extend ::ModuleCluster::Define::ClusterCascades::Mock05
233
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
234
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
235
- eigenclass = class << self ; self ; end
236
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
237
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
238
- end
239
- Object.new.instance_eval do
240
- extend ::ModuleCluster::Define::ClusterCascades::Mock05
241
- eigenclass = class << self ; self ; end
242
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
243
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
244
- end
245
- module ModuleProof2
246
- extend ::ModuleCluster::Define::ClusterCascades::Mock05::ModuleProof1
247
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
248
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
249
- eigenclass = class << self ; self ; end
250
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
251
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
252
- end
253
- class ClassProof2
254
- extend ::ModuleCluster::Define::ClusterCascades::Mock05::ModuleProof1
255
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
256
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
257
- eigenclass = class << self ; self ; end
258
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
259
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
260
- end
261
- Object.new.instance_eval do
262
- extend ::ModuleCluster::Define::ClusterCascades::Mock05::ModuleProof1
263
- eigenclass = class << self ; self ; end
264
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
265
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
266
- end
267
- end
268
- end
269
-
270
- ##########################################
271
- # extend_cascades_includes_and_extends #
272
- ##########################################
273
-
274
- it 'include and extend modules for any class or module this module is extended in' do
275
- module ::ModuleCluster::Define::ClusterCascades::Mock06
276
- extend ::ModuleCluster::Define::ClusterCascades
277
- module Module1
278
- end
279
- module Module2
280
- end
281
- extend_cascades_includes_and_extends( Module1, Module2 ).name = :some_name
282
- respond_to?( :extended ).should == true
283
- module ModuleProof1
284
- extend ::ModuleCluster::Define::ClusterCascades::Mock06
285
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
286
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
287
- eigenclass = class << self ; self ; end
288
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
289
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
290
- end
291
- class ClassProof
292
- extend ::ModuleCluster::Define::ClusterCascades::Mock06
293
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
294
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
295
- eigenclass = class << self ; self ; end
296
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
297
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
298
- end
299
- Object.new.instance_eval do
300
- extend ::ModuleCluster::Define::ClusterCascades::Mock06
301
- eigenclass = class << self ; self ; end
302
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
303
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
304
- end
305
- module ModuleProof2
306
- extend ::ModuleCluster::Define::ClusterCascades::Mock06::ModuleProof1
307
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
308
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
309
- eigenclass = class << self ; self ; end
310
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
311
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
312
- end
313
- class ClassProof2
314
- extend ::ModuleCluster::Define::ClusterCascades::Mock06::ModuleProof1
315
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
316
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
317
- eigenclass = class << self ; self ; end
318
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
319
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
320
- end
321
- Object.new.instance_eval do
322
- extend ::ModuleCluster::Define::ClusterCascades::Mock06::ModuleProof1
323
- eigenclass = class << self ; self ; end
324
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
325
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
326
- end
327
- end
328
- end
329
-
330
- ##########################################
331
- # include_cascades_prepend_includes #
332
- ##########################################
333
-
334
- it 'include other modules for any class or module this module is included in, before this module is included' do
335
- module ::ModuleCluster::Define::ClusterCascades::Mock07
336
- extend ::ModuleCluster::Define::ClusterCascades
337
- module Module1
338
- end
339
- module Module2
340
- end
341
- include_cascades_prepend_includes( Module1, Module2 ).name = :some_name
342
- respond_to?( :append_features ).should == true
343
- module ModuleProof1
344
- include ::ModuleCluster::Define::ClusterCascades::Mock07
345
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
346
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
347
- eigenclass = class << self ; self ; end
348
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
349
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
350
- end
351
- class ClassProof
352
- include ::ModuleCluster::Define::ClusterCascades::Mock07
353
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
354
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
355
- eigenclass = class << self ; self ; end
356
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
357
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
358
- end
359
- module ModuleProof2
360
- include ::ModuleCluster::Define::ClusterCascades::Mock07::ModuleProof1
361
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
362
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
363
- eigenclass = class << self ; self ; end
364
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
365
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
366
- end
367
- class ClassProof2
368
- include ::ModuleCluster::Define::ClusterCascades::Mock07::ModuleProof1
369
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
370
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
371
- eigenclass = class << self ; self ; end
372
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
373
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
374
- end
375
- end
376
- end
377
-
378
- #########################################
379
- # include_cascades_prepend_extends #
380
- #########################################
381
-
382
- it 'extend other modules for any class or module this module is included in, before this module is included' do
383
- module ::ModuleCluster::Define::ClusterCascades::Mock08
384
- extend ::ModuleCluster::Define::ClusterCascades
385
- module Module1
386
- end
387
- module Module2
388
- end
389
- include_cascades_prepend_extends( Module1, Module2 ).name = :some_name
390
- respond_to?( :append_features ).should == true
391
- module ModuleProof1
392
- include ::ModuleCluster::Define::ClusterCascades::Mock08
393
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
394
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
395
- eigenclass = class << self ; self ; end
396
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
397
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
398
- end
399
- class ClassProof
400
- include ::ModuleCluster::Define::ClusterCascades::Mock08
401
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
402
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
403
- eigenclass = class << self ; self ; end
404
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
405
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
406
- end
407
- module ModuleProof2
408
- include ::ModuleCluster::Define::ClusterCascades::Mock08::ModuleProof1
409
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
410
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
411
- eigenclass = class << self ; self ; end
412
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
413
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
414
- end
415
- class ClassProof2
416
- include ::ModuleCluster::Define::ClusterCascades::Mock08::ModuleProof1
417
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
418
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
419
- eigenclass = class << self ; self ; end
420
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
421
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
422
- end
423
- end
424
- end
425
-
426
- ######################################################
427
- # include_cascades_prepend_includes_and_extends #
428
- ######################################################
429
-
430
- it 'include and extend other modules for any class or module this module is included in, before this module is included' do
431
- module ::ModuleCluster::Define::ClusterCascades::Mock09
432
- extend ::ModuleCluster::Define::ClusterCascades
433
- module Module1
434
- end
435
- module Module2
436
- end
437
- include_cascades_prepend_includes_and_extends( Module1, Module2 ).name = :some_name
438
- respond_to?( :append_features ).should == true
439
- module ModuleProof1
440
- include ::ModuleCluster::Define::ClusterCascades::Mock09
441
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
442
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
443
- eigenclass = class << self ; self ; end
444
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
445
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
446
- end
447
- class ClassProof
448
- include ::ModuleCluster::Define::ClusterCascades::Mock09
449
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
450
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
451
- eigenclass = class << self ; self ; end
452
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
453
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
454
- end
455
- module ModuleProof2
456
- include ::ModuleCluster::Define::ClusterCascades::Mock09::ModuleProof1
457
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
458
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
459
- eigenclass = class << self ; self ; end
460
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
461
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
462
- end
463
- class ClassProof2
464
- include ::ModuleCluster::Define::ClusterCascades::Mock09::ModuleProof1
465
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
466
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
467
- eigenclass = class << self ; self ; end
468
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
469
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
470
- end
471
- end
472
- end
473
-
474
- #########################################
475
- # extend_cascades_prepend_includes #
476
- #########################################
477
-
478
- it 'include other modules for any class or module this module is included in, before this module is extended' do
479
- module ::ModuleCluster::Define::ClusterCascades::Mock10
480
- extend ::ModuleCluster::Define::ClusterCascades
481
- module Module1
482
- end
483
- module Module2
484
- end
485
- extend_cascades_prepend_includes( Module1, Module2 ).name = :some_name
486
- respond_to?( :extend_object ).should == true
487
- module ModuleProof1
488
- extend ::ModuleCluster::Define::ClusterCascades::Mock10
489
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
490
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
491
- eigenclass = class << self ; self ; end
492
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == false
493
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == false
494
- end
495
- class ClassProof
496
- extend ::ModuleCluster::Define::ClusterCascades::Mock10
497
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
498
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
499
- eigenclass = class << self ; self ; end
500
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == false
501
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == false
502
- end
503
- module ModuleProof2
504
- extend ::ModuleCluster::Define::ClusterCascades::Mock10::ModuleProof1
505
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
506
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
507
- eigenclass = class << self ; self ; end
508
- # true by ancestors
509
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
510
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
511
- end
512
- class ClassProof2
513
- extend ::ModuleCluster::Define::ClusterCascades::Mock10::ModuleProof1
514
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
515
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
516
- eigenclass = class << self ; self ; end
517
- # true by ancestors
518
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
519
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
520
- end
521
- end
522
- end
523
-
524
- ########################################
525
- # extend_cascades_prepend_extends #
526
- ########################################
527
-
528
- it 'extend other modules for any class or module this module is included in, before this module is extended' do
529
- module ::ModuleCluster::Define::ClusterCascades::Mock11
530
- extend ::ModuleCluster::Define::ClusterCascades
531
- module Module1
532
- end
533
- module Module2
534
- end
535
- extend_cascades_prepend_extends( Module1, Module2 ).name = :some_name
536
- respond_to?( :extend_object ).should == true
537
- module ModuleProof1
538
- extend ::ModuleCluster::Define::ClusterCascades::Mock11
539
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
540
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
541
- eigenclass = class << self ; self ; end
542
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
543
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
544
- end
545
- class ClassProof
546
- extend ::ModuleCluster::Define::ClusterCascades::Mock11
547
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
548
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
549
- eigenclass = class << self ; self ; end
550
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
551
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
552
- end
553
- Object.new.instance_eval do
554
- extend ::ModuleCluster::Define::ClusterCascades::Mock11
555
- eigenclass = class << self ; self ; end
556
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
557
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
558
- end
559
- module ModuleProof2
560
- extend ::ModuleCluster::Define::ClusterCascades::Mock11::ModuleProof1
561
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
562
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
563
- eigenclass = class << self ; self ; end
564
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
565
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
566
- end
567
- class ClassProof2
568
- extend ::ModuleCluster::Define::ClusterCascades::Mock11::ModuleProof1
569
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
570
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
571
- eigenclass = class << self ; self ; end
572
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
573
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
574
- end
575
- Object.new.instance_eval do
576
- extend ::ModuleCluster::Define::ClusterCascades::Mock11::ModuleProof1
577
- eigenclass = class << self ; self ; end
578
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
579
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
580
- end
581
- end
582
- end
583
-
584
- #####################################################
585
- # extend_cascades_prepend_includes_and_extends #
586
- #####################################################
587
-
588
- it 'include and extend other modules for any class or module this module is included in, before this module is extended' do
589
- module ::ModuleCluster::Define::ClusterCascades::Mock12
590
- extend ::ModuleCluster::Define::ClusterCascades
591
- module Module1
592
- end
593
- module Module2
594
- end
595
- extend_cascades_prepend_includes_and_extends( Module1, Module2 ).name = :some_name
596
- respond_to?( :extend_object ).should == true
597
- module ModuleProof1
598
- extend ::ModuleCluster::Define::ClusterCascades::Mock12
599
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
600
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
601
- eigenclass = class << self ; self ; end
602
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
603
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
604
- end
605
- class ClassProof
606
- extend ::ModuleCluster::Define::ClusterCascades::Mock12
607
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
608
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
609
- eigenclass = class << self ; self ; end
610
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
611
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
612
- end
613
- Object.new.instance_eval do
614
- extend ::ModuleCluster::Define::ClusterCascades::Mock12
615
- eigenclass = class << self ; self ; end
616
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
617
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
618
- end
619
- module ModuleProof2
620
- extend ::ModuleCluster::Define::ClusterCascades::Mock12::ModuleProof1
621
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
622
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
623
- eigenclass = class << self ; self ; end
624
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
625
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
626
- end
627
- class ClassProof
628
- extend ::ModuleCluster::Define::ClusterCascades::Mock12::ModuleProof1
629
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
630
- ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
631
- eigenclass = class << self ; self ; end
632
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
633
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
634
- end
635
- Object.new.instance_eval do
636
- extend ::ModuleCluster::Define::ClusterCascades::Mock12::ModuleProof1
637
- eigenclass = class << self ; self ; end
638
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
639
- eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
640
- end
641
- end
642
- end
643
-
644
- end