module-cluster 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/README.md +4 -4
  2. data/README.rdoc +4 -4
  3. data/lib/module-cluster.rb +19 -10
  4. data/lib/module-cluster/ModuleCluster.rb +1 -1
  5. data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +3 -3
  6. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +4 -4
  7. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +4 -4
  8. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +4 -4
  9. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrSubclass.rb +29 -0
  10. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrSubclass.rb +22 -0
  11. data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +3 -3
  12. data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +3 -3
  13. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +4 -4
  14. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrSubclass.rb +22 -0
  15. data/lib/module-cluster/ModuleCluster/Define/Block/Subclass.rb +32 -5
  16. data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +3 -3
  17. data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +3 -3
  18. data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +3 -3
  19. data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +3 -3
  20. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +3 -3
  21. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +3 -3
  22. data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +3 -3
  23. data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +3 -3
  24. data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +3 -3
  25. data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +3 -3
  26. data/lib/module-cluster/ModuleCluster/Define/Status.rb +4 -4
  27. data/lib/module-cluster/ModuleCluster/Suspend/WithoutHooks.rb +1 -1
  28. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +1 -1
  29. data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +1 -1
  30. data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade/Subclass.rb +55 -8
  31. data/spec/ModuleCluster/Define/Block/ClassOrInstance_spec.rb +36 -36
  32. data/spec/ModuleCluster/Define/Block/ClassOrModuleOrInstance_spec.rb +36 -36
  33. data/spec/ModuleCluster/Define/Block/ClassOrModuleOrSubclass_spec.rb +55 -0
  34. data/spec/ModuleCluster/Define/Block/ClassOrModule_spec.rb +36 -36
  35. data/spec/ModuleCluster/Define/Block/ClassOrSubclass_spec.rb +54 -0
  36. data/spec/ModuleCluster/Define/Block/Class_spec.rb +36 -36
  37. data/spec/ModuleCluster/Define/Block/Instance_spec.rb +12 -12
  38. data/spec/ModuleCluster/Define/Block/ModuleOrSubclass_spec.rb +53 -0
  39. data/spec/ModuleCluster/Define/Block/Module_spec.rb +36 -36
  40. data/spec/ModuleCluster/Define/Block/Subclass_spec.rb +39 -9
  41. data/spec/ModuleCluster/Define/ClassCluster_spec.rb +71 -71
  42. data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +60 -60
  43. data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +72 -72
  44. data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +72 -72
  45. data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +68 -68
  46. data/spec/ModuleCluster/Define/Cluster_spec.rb +71 -71
  47. data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +8 -8
  48. data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +71 -71
  49. data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +71 -71
  50. data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +60 -60
  51. data/spec/ModuleCluster/Suspend/Hooks_spec.rb +14 -14
  52. data/spec/ModuleCluster/Suspend/WithoutHooks_spec.rb +14 -14
  53. data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +6 -6
  54. data/spec/_private_/ModuleCluster/ClusterStack/Suspend_spec.rb +8 -8
  55. metadata +33 -29
@@ -19,7 +19,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
19
19
 
20
20
  it 'include modules for any class this module or any including modules are included in' do
21
21
  module ModuleCluster::Define::ClusterCascadesToModule::Mock01
22
- extend ModuleCluster::Define::ClusterCascadesToModule
22
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
23
23
  module Module1
24
24
  end
25
25
  module Module2
@@ -27,7 +27,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
27
27
  include_cascades_includes_to_module( Module1, Module2 ).name = :some_name
28
28
  respond_to?( :included ).should == true
29
29
  module ModuleProof1
30
- include ModuleCluster::Define::ClusterCascadesToModule::Mock01
30
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock01
31
31
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == true
32
32
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == true
33
33
  eigenclass = class << self ; self ; end
@@ -35,7 +35,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
35
35
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
36
36
  end
37
37
  class ClassProof
38
- include ModuleCluster::Define::ClusterCascadesToModule::Mock01
38
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock01
39
39
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
40
40
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
41
41
  eigenclass = class << self ; self ; end
@@ -43,7 +43,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
43
43
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
44
44
  end
45
45
  module ModuleProof2
46
- include ModuleCluster::Define::ClusterCascadesToModule::Mock01::ModuleProof1
46
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::ModuleProof1
47
47
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == true
48
48
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == true
49
49
  eigenclass = class << self ; self ; end
@@ -51,7 +51,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
51
51
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
52
52
  end
53
53
  class ClassProof2
54
- include ModuleCluster::Define::ClusterCascadesToModule::Mock01::ModuleProof1
54
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::ModuleProof1
55
55
  # true b/c of ancestor chain
56
56
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == true
57
57
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == true
@@ -68,7 +68,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
68
68
 
69
69
  it 'extends modules for any class this module or any including modules are included in' do
70
70
  module ModuleCluster::Define::ClusterCascadesToModule::Mock02
71
- extend ModuleCluster::Define::ClusterCascadesToModule
71
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
72
72
  module Module1
73
73
  end
74
74
  module Module2
@@ -76,7 +76,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
76
76
  include_cascades_extends_to_module( Module1, Module2 ).name = :some_name
77
77
  respond_to?( :included ).should == true
78
78
  module ModuleProof1
79
- include ModuleCluster::Define::ClusterCascadesToModule::Mock02
79
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock02
80
80
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
81
81
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
82
82
  eigenclass = class << self ; self ; end
@@ -84,7 +84,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
84
84
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == true
85
85
  end
86
86
  class ClassProof
87
- include ModuleCluster::Define::ClusterCascadesToModule::Mock02
87
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock02
88
88
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
89
89
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
90
90
  eigenclass = class << self ; self ; end
@@ -92,7 +92,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
92
92
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
93
93
  end
94
94
  module ModuleProof2
95
- include ModuleCluster::Define::ClusterCascadesToModule::Mock02::ModuleProof1
95
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::ModuleProof1
96
96
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
97
97
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
98
98
  eigenclass = class << self ; self ; end
@@ -100,7 +100,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
100
100
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == true
101
101
  end
102
102
  class ClassProof2
103
- include ModuleCluster::Define::ClusterCascadesToModule::Mock02::ModuleProof1
103
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::ModuleProof1
104
104
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
105
105
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
106
106
  eigenclass = class << self ; self ; end
@@ -116,7 +116,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
116
116
 
117
117
  it 'include and extends modules for any class this module or any including modules are included in' do
118
118
  module ModuleCluster::Define::ClusterCascadesToModule::Mock03
119
- extend ModuleCluster::Define::ClusterCascadesToModule
119
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
120
120
  module Module1
121
121
  end
122
122
  module Module2
@@ -124,7 +124,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
124
124
  include_cascades_includes_and_extends_to_module( Module1, Module2 ).name = :some_name
125
125
  respond_to?( :included ).should == true
126
126
  module ModuleProof1
127
- include ModuleCluster::Define::ClusterCascadesToModule::Mock03
127
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock03
128
128
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
129
129
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
130
130
  eigenclass = class << self ; self ; end
@@ -132,7 +132,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
132
132
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
133
133
  end
134
134
  class ClassProof
135
- include ModuleCluster::Define::ClusterCascadesToModule::Mock03
135
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock03
136
136
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == false
137
137
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == false
138
138
  eigenclass = class << self ; self ; end
@@ -140,7 +140,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
140
140
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == false
141
141
  end
142
142
  module ModuleProof2
143
- include ModuleCluster::Define::ClusterCascadesToModule::Mock03::ModuleProof1
143
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::ModuleProof1
144
144
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
145
145
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
146
146
  eigenclass = class << self ; self ; end
@@ -148,7 +148,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
148
148
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
149
149
  end
150
150
  class ClassProof2
151
- include ModuleCluster::Define::ClusterCascadesToModule::Mock03::ModuleProof1
151
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::ModuleProof1
152
152
  # true b/c of ancestor chain
153
153
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
154
154
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
@@ -165,7 +165,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
165
165
 
166
166
  it 'include modules for any class this module is extended in' do
167
167
  module ModuleCluster::Define::ClusterCascadesToModule::Mock04
168
- extend ModuleCluster::Define::ClusterCascadesToModule
168
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
169
169
  module Module1
170
170
  end
171
171
  module Module2
@@ -173,7 +173,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
173
173
  extend_cascades_includes_to_module( Module1, Module2 ).name = :some_name
174
174
  respond_to?( :extended ).should == true
175
175
  module ModuleProof1
176
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock04
176
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04
177
177
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
178
178
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
179
179
  eigenclass = class << self ; self ; end
@@ -181,7 +181,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
181
181
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
182
182
  end
183
183
  class ClassProof
184
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock04
184
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04
185
185
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
186
186
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
187
187
  eigenclass = class << self ; self ; end
@@ -189,13 +189,13 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
189
189
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
190
190
  end
191
191
  Object.new.instance_eval do
192
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock04
192
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04
193
193
  eigenclass = class << self ; self ; end
194
194
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
195
195
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
196
196
  end
197
197
  module ModuleProof2
198
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock04::ModuleProof1
198
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::ModuleProof1
199
199
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
200
200
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
201
201
  eigenclass = class << self ; self ; end
@@ -204,7 +204,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
204
204
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
205
205
  end
206
206
  class ClassProof2
207
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock04::ModuleProof1
207
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::ModuleProof1
208
208
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
209
209
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
210
210
  eigenclass = class << self ; self ; end
@@ -213,7 +213,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
213
213
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
214
214
  end
215
215
  Object.new.instance_eval do
216
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock04::ModuleProof1
216
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::ModuleProof1
217
217
  eigenclass = class << self ; self ; end
218
218
  # true because of ancestor chain
219
219
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
@@ -228,7 +228,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
228
228
 
229
229
  it 'extend modules for any class this module is extended in' do
230
230
  module ModuleCluster::Define::ClusterCascadesToModule::Mock05
231
- extend ModuleCluster::Define::ClusterCascadesToModule
231
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
232
232
  module Module1
233
233
  end
234
234
  module Module2
@@ -236,7 +236,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
236
236
  extend_cascades_extends_to_module( Module1, Module2 ).name = :some_name
237
237
  respond_to?( :extended ).should == true
238
238
  module ModuleProof1
239
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock05
239
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05
240
240
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
241
241
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
242
242
  eigenclass = class << self ; self ; end
@@ -244,7 +244,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
244
244
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == true
245
245
  end
246
246
  class ClassProof
247
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock05
247
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05
248
248
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
249
249
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
250
250
  eigenclass = class << self ; self ; end
@@ -252,13 +252,13 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
252
252
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
253
253
  end
254
254
  Object.new.instance_eval do
255
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock05
255
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05
256
256
  eigenclass = class << self ; self ; end
257
257
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
258
258
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
259
259
  end
260
260
  module ModuleProof2
261
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock05::ModuleProof1
261
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::ModuleProof1
262
262
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
263
263
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
264
264
  eigenclass = class << self ; self ; end
@@ -266,7 +266,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
266
266
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == true
267
267
  end
268
268
  class ClassProof2
269
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock05::ModuleProof1
269
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::ModuleProof1
270
270
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
271
271
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
272
272
  eigenclass = class << self ; self ; end
@@ -274,7 +274,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
274
274
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
275
275
  end
276
276
  Object.new.instance_eval do
277
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock05::ModuleProof1
277
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::ModuleProof1
278
278
  eigenclass = class << self ; self ; end
279
279
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
280
280
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
@@ -288,7 +288,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
288
288
 
289
289
  it 'include and extend modules for any class this module is extended in' do
290
290
  module ModuleCluster::Define::ClusterCascadesToModule::Mock06
291
- extend ModuleCluster::Define::ClusterCascadesToModule
291
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
292
292
  module Module1
293
293
  end
294
294
  module Module2
@@ -296,7 +296,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
296
296
  extend_cascades_includes_and_extends_to_module( Module1, Module2 ).name = :some_name
297
297
  respond_to?( :extended ).should == true
298
298
  module ModuleProof1
299
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock06
299
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06
300
300
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
301
301
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
302
302
  eigenclass = class << self ; self ; end
@@ -304,7 +304,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
304
304
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
305
305
  end
306
306
  class ClassProof
307
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock06
307
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06
308
308
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
309
309
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
310
310
  eigenclass = class << self ; self ; end
@@ -312,13 +312,13 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
312
312
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
313
313
  end
314
314
  Object.new.instance_eval do
315
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock06
315
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06
316
316
  eigenclass = class << self ; self ; end
317
317
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
318
318
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
319
319
  end
320
320
  module ModuleProof2
321
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock06::ModuleProof1
321
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::ModuleProof1
322
322
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
323
323
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
324
324
  eigenclass = class << self ; self ; end
@@ -326,7 +326,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
326
326
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
327
327
  end
328
328
  class ClassProof2
329
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock06::ModuleProof1
329
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::ModuleProof1
330
330
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
331
331
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
332
332
  eigenclass = class << self ; self ; end
@@ -335,7 +335,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
335
335
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
336
336
  end
337
337
  Object.new.instance_eval do
338
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock06::ModuleProof1
338
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::ModuleProof1
339
339
  eigenclass = class << self ; self ; end
340
340
  # true because Proof2's ancestor chain includes
341
341
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
@@ -350,7 +350,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
350
350
 
351
351
  it 'include other modules for any class this module or any including modules are included in, before this module or including module is included' do
352
352
  module ModuleCluster::Define::ClusterCascadesToModule::Mock07
353
- extend ModuleCluster::Define::ClusterCascadesToModule
353
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
354
354
  module Module1
355
355
  end
356
356
  module Module2
@@ -358,7 +358,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
358
358
  include_cascades_to_module_prepend_includes( Module1, Module2 ).name = :some_name
359
359
  respond_to?( :append_features ).should == true
360
360
  module ModuleProof1
361
- include ModuleCluster::Define::ClusterCascadesToModule::Mock07
361
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock07
362
362
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == true
363
363
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == true
364
364
  eigenclass = class << self ; self ; end
@@ -366,7 +366,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
366
366
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
367
367
  end
368
368
  class ClassProof
369
- include ModuleCluster::Define::ClusterCascadesToModule::Mock07
369
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock07
370
370
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
371
371
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
372
372
  eigenclass = class << self ; self ; end
@@ -374,7 +374,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
374
374
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
375
375
  end
376
376
  module ModuleProof2
377
- include ModuleCluster::Define::ClusterCascadesToModule::Mock07::ModuleProof1
377
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::ModuleProof1
378
378
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == true
379
379
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == true
380
380
  eigenclass = class << self ; self ; end
@@ -382,7 +382,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
382
382
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
383
383
  end
384
384
  class ClassProof2
385
- include ModuleCluster::Define::ClusterCascadesToModule::Mock07::ModuleProof1
385
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::ModuleProof1
386
386
  # true b/c of ancestor chain
387
387
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == true
388
388
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == true
@@ -399,7 +399,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
399
399
 
400
400
  it 'extend other modules for any class this module or any including modules are included in, before this module or including module is included' do
401
401
  module ModuleCluster::Define::ClusterCascadesToModule::Mock08
402
- extend ModuleCluster::Define::ClusterCascadesToModule
402
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
403
403
  module Module1
404
404
  end
405
405
  module Module2
@@ -407,7 +407,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
407
407
  include_cascades_to_module_prepend_extends( Module1, Module2 ).name = :some_name
408
408
  respond_to?( :append_features ).should == true
409
409
  module ModuleProof1
410
- include ModuleCluster::Define::ClusterCascadesToModule::Mock08
410
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock08
411
411
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
412
412
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
413
413
  eigenclass = class << self ; self ; end
@@ -415,7 +415,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
415
415
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == true
416
416
  end
417
417
  class ClassProof
418
- include ModuleCluster::Define::ClusterCascadesToModule::Mock08
418
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock08
419
419
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
420
420
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
421
421
  eigenclass = class << self ; self ; end
@@ -423,7 +423,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
423
423
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
424
424
  end
425
425
  module ModuleProof2
426
- include ModuleCluster::Define::ClusterCascadesToModule::Mock08::ModuleProof1
426
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::ModuleProof1
427
427
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
428
428
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
429
429
  eigenclass = class << self ; self ; end
@@ -431,7 +431,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
431
431
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == true
432
432
  end
433
433
  class ClassProof2
434
- include ModuleCluster::Define::ClusterCascadesToModule::Mock08::ModuleProof1
434
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::ModuleProof1
435
435
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
436
436
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
437
437
  eigenclass = class << self ; self ; end
@@ -447,7 +447,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
447
447
 
448
448
  it 'include and extend other modules for any class this module or any including modules are included in, before this module or including module is included' do
449
449
  module ModuleCluster::Define::ClusterCascadesToModule::Mock09
450
- extend ModuleCluster::Define::ClusterCascadesToModule
450
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
451
451
  module Module1
452
452
  end
453
453
  module Module2
@@ -455,7 +455,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
455
455
  include_cascades_to_module_prepend_includes_and_extends( Module1, Module2 ).name = :some_name
456
456
  respond_to?( :append_features ).should == true
457
457
  module ModuleProof1
458
- include ModuleCluster::Define::ClusterCascadesToModule::Mock09
458
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock09
459
459
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
460
460
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
461
461
  eigenclass = class << self ; self ; end
@@ -463,7 +463,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
463
463
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
464
464
  end
465
465
  class ClassProof
466
- include ModuleCluster::Define::ClusterCascadesToModule::Mock09
466
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock09
467
467
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == false
468
468
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == false
469
469
  eigenclass = class << self ; self ; end
@@ -471,7 +471,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
471
471
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == false
472
472
  end
473
473
  module ModuleProof2
474
- include ModuleCluster::Define::ClusterCascadesToModule::Mock09::ModuleProof1
474
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::ModuleProof1
475
475
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
476
476
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
477
477
  eigenclass = class << self ; self ; end
@@ -479,7 +479,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
479
479
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
480
480
  end
481
481
  class ClassProof2
482
- include ModuleCluster::Define::ClusterCascadesToModule::Mock09::ModuleProof1
482
+ include ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::ModuleProof1
483
483
  # true b/c of ancestor chain
484
484
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
485
485
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
@@ -496,7 +496,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
496
496
 
497
497
  it 'include other modules for any class this module or any including modules are included in, before this module is extended' do
498
498
  module ModuleCluster::Define::ClusterCascadesToModule::Mock10
499
- extend ModuleCluster::Define::ClusterCascadesToModule
499
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
500
500
  module Module1
501
501
  end
502
502
  module Module2
@@ -504,7 +504,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
504
504
  extend_cascades_to_module_prepend_includes( Module1, Module2 ).name = :some_name
505
505
  respond_to?( :extend_object ).should == true
506
506
  module ModuleProof1
507
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock10
507
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10
508
508
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
509
509
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
510
510
  eigenclass = class << self ; self ; end
@@ -512,7 +512,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
512
512
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
513
513
  end
514
514
  class ClassProof
515
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock10
515
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10
516
516
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
517
517
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
518
518
  eigenclass = class << self ; self ; end
@@ -520,13 +520,13 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
520
520
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
521
521
  end
522
522
  Object.new.instance_eval do
523
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock10
523
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10
524
524
  eigenclass = class << self ; self ; end
525
525
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
526
526
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
527
527
  end
528
528
  module ModuleProof2
529
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock10::ModuleProof1
529
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::ModuleProof1
530
530
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
531
531
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
532
532
  eigenclass = class << self ; self ; end
@@ -535,7 +535,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
535
535
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
536
536
  end
537
537
  class ClassProof2
538
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock10::ModuleProof1
538
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::ModuleProof1
539
539
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
540
540
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
541
541
  eigenclass = class << self ; self ; end
@@ -544,7 +544,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
544
544
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
545
545
  end
546
546
  Object.new.instance_eval do
547
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock10::ModuleProof1
547
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::ModuleProof1
548
548
  eigenclass = class << self ; self ; end
549
549
  # true because of ancestor chain
550
550
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
@@ -559,7 +559,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
559
559
 
560
560
  it 'extend other modules for any class this module or any including modules are included in, before this module is extended' do
561
561
  module ModuleCluster::Define::ClusterCascadesToModule::Mock11
562
- extend ModuleCluster::Define::ClusterCascadesToModule
562
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
563
563
  module Module1
564
564
  end
565
565
  module Module2
@@ -567,7 +567,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
567
567
  extend_cascades_to_module_prepend_extends( Module1, Module2 ).name = :some_name
568
568
  respond_to?( :extend_object ).should == true
569
569
  module ModuleProof1
570
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock11
570
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11
571
571
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
572
572
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
573
573
  eigenclass = class << self ; self ; end
@@ -575,7 +575,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
575
575
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == true
576
576
  end
577
577
  class ClassProof
578
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock11
578
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11
579
579
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
580
580
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
581
581
  eigenclass = class << self ; self ; end
@@ -583,13 +583,13 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
583
583
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
584
584
  end
585
585
  Object.new.instance_eval do
586
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock11
586
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11
587
587
  eigenclass = class << self ; self ; end
588
588
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
589
589
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
590
590
  end
591
591
  module ModuleProof2
592
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock11::ModuleProof1
592
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::ModuleProof1
593
593
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
594
594
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
595
595
  eigenclass = class << self ; self ; end
@@ -597,7 +597,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
597
597
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == true
598
598
  end
599
599
  class ClassProof2
600
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock11::ModuleProof1
600
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::ModuleProof1
601
601
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
602
602
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
603
603
  eigenclass = class << self ; self ; end
@@ -605,7 +605,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
605
605
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
606
606
  end
607
607
  Object.new.instance_eval do
608
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock11::ModuleProof1
608
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::ModuleProof1
609
609
  eigenclass = class << self ; self ; end
610
610
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
611
611
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
@@ -619,7 +619,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
619
619
 
620
620
  it 'include and extend other modules for any class this module or any including modules are included in, before this module is extended' do
621
621
  module ModuleCluster::Define::ClusterCascadesToModule::Mock12
622
- extend ModuleCluster::Define::ClusterCascadesToModule
622
+ extend ::ModuleCluster::Define::ClusterCascadesToModule
623
623
  module Module1
624
624
  end
625
625
  module Module2
@@ -627,7 +627,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
627
627
  extend_cascades_to_module_prepend_includes_and_extends( Module1, Module2 ).name = :some_name
628
628
  respond_to?( :extend_object ).should == true
629
629
  module ModuleProof1
630
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock12
630
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12
631
631
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
632
632
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
633
633
  eigenclass = class << self ; self ; end
@@ -635,7 +635,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
635
635
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
636
636
  end
637
637
  class ClassProof
638
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock12
638
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12
639
639
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
640
640
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
641
641
  eigenclass = class << self ; self ; end
@@ -643,13 +643,13 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
643
643
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
644
644
  end
645
645
  Object.new.instance_eval do
646
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock12
646
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12
647
647
  eigenclass = class << self ; self ; end
648
648
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
649
649
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
650
650
  end
651
651
  module ModuleProof2
652
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock12::ModuleProof1
652
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::ModuleProof1
653
653
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
654
654
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
655
655
  eigenclass = class << self ; self ; end
@@ -657,7 +657,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
657
657
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
658
658
  end
659
659
  class ClassProof2
660
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock12::ModuleProof1
660
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::ModuleProof1
661
661
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
662
662
  ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
663
663
  eigenclass = class << self ; self ; end
@@ -666,7 +666,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
666
666
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
667
667
  end
668
668
  Object.new.instance_eval do
669
- extend ModuleCluster::Define::ClusterCascadesToModule::Mock12::ModuleProof1
669
+ extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::ModuleProof1
670
670
  eigenclass = class << self ; self ; end
671
671
  # true because of ancestor chain
672
672
  eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true