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.
- data/README.md +4 -4
- data/README.rdoc +4 -4
- data/lib/module-cluster.rb +19 -10
- data/lib/module-cluster/ModuleCluster.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrSubclass.rb +29 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrSubclass.rb +22 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrSubclass.rb +22 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/Subclass.rb +32 -5
- data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/Status.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Suspend/WithoutHooks.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade/Subclass.rb +55 -8
- data/spec/ModuleCluster/Define/Block/ClassOrInstance_spec.rb +36 -36
- data/spec/ModuleCluster/Define/Block/ClassOrModuleOrInstance_spec.rb +36 -36
- data/spec/ModuleCluster/Define/Block/ClassOrModuleOrSubclass_spec.rb +55 -0
- data/spec/ModuleCluster/Define/Block/ClassOrModule_spec.rb +36 -36
- data/spec/ModuleCluster/Define/Block/ClassOrSubclass_spec.rb +54 -0
- data/spec/ModuleCluster/Define/Block/Class_spec.rb +36 -36
- data/spec/ModuleCluster/Define/Block/Instance_spec.rb +12 -12
- data/spec/ModuleCluster/Define/Block/ModuleOrSubclass_spec.rb +53 -0
- data/spec/ModuleCluster/Define/Block/Module_spec.rb +36 -36
- data/spec/ModuleCluster/Define/Block/Subclass_spec.rb +39 -9
- data/spec/ModuleCluster/Define/ClassCluster_spec.rb +71 -71
- data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +60 -60
- data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +72 -72
- data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +72 -72
- data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +68 -68
- data/spec/ModuleCluster/Define/Cluster_spec.rb +71 -71
- data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +8 -8
- data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +71 -71
- data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +71 -71
- data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +60 -60
- data/spec/ModuleCluster/Suspend/Hooks_spec.rb +14 -14
- data/spec/ModuleCluster/Suspend/WithoutHooks_spec.rb +14 -14
- data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +6 -6
- data/spec/_private_/ModuleCluster/ClusterStack/Suspend_spec.rb +8 -8
- metadata +33 -29
@@ -9,7 +9,7 @@ describe ModuleCluster::Define::Cluster do
|
|
9
9
|
|
10
10
|
it 'include other modules when this one is included' do
|
11
11
|
module ModuleCluster::Define::Cluster::Mock01
|
12
|
-
extend ModuleCluster::Define::Cluster
|
12
|
+
extend ::ModuleCluster::Define::Cluster
|
13
13
|
module Module1
|
14
14
|
end
|
15
15
|
module Module2
|
@@ -17,7 +17,7 @@ describe ModuleCluster::Define::Cluster do
|
|
17
17
|
include_also_includes( Module1, Module2 ).name = :some_name
|
18
18
|
respond_to?( :included ).should == true
|
19
19
|
module ModuleProof
|
20
|
-
include ModuleCluster::Define::Cluster::Mock01
|
20
|
+
include ::ModuleCluster::Define::Cluster::Mock01
|
21
21
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module1 ).should == true
|
22
22
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module2 ).should == true
|
23
23
|
eigenclass = class << self ; self ; end
|
@@ -25,7 +25,7 @@ describe ModuleCluster::Define::Cluster do
|
|
25
25
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module2 ).should == false
|
26
26
|
end
|
27
27
|
class ClassProof
|
28
|
-
include ModuleCluster::Define::Cluster::Mock01
|
28
|
+
include ::ModuleCluster::Define::Cluster::Mock01
|
29
29
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module1 ).should == true
|
30
30
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module2 ).should == true
|
31
31
|
eigenclass = class << self ; self ; end
|
@@ -41,7 +41,7 @@ describe ModuleCluster::Define::Cluster do
|
|
41
41
|
|
42
42
|
it 'extend other modules when this one is included' do
|
43
43
|
module ModuleCluster::Define::Cluster::Mock02
|
44
|
-
extend ModuleCluster::Define::Cluster
|
44
|
+
extend ::ModuleCluster::Define::Cluster
|
45
45
|
module Module1
|
46
46
|
end
|
47
47
|
module Module2
|
@@ -49,7 +49,7 @@ describe ModuleCluster::Define::Cluster do
|
|
49
49
|
include_also_extends( Module1, Module2 ).name = :some_name
|
50
50
|
respond_to?( :included ).should == true
|
51
51
|
module ModuleProof
|
52
|
-
include ModuleCluster::Define::Cluster::Mock02
|
52
|
+
include ::ModuleCluster::Define::Cluster::Mock02
|
53
53
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module1 ).should == false
|
54
54
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module2 ).should == false
|
55
55
|
eigenclass = class << self ; self ; end
|
@@ -57,7 +57,7 @@ describe ModuleCluster::Define::Cluster do
|
|
57
57
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module2 ).should == true
|
58
58
|
end
|
59
59
|
class ClassProof
|
60
|
-
include ModuleCluster::Define::Cluster::Mock02
|
60
|
+
include ::ModuleCluster::Define::Cluster::Mock02
|
61
61
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module1 ).should == false
|
62
62
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module2 ).should == false
|
63
63
|
eigenclass = class << self ; self ; end
|
@@ -73,7 +73,7 @@ describe ModuleCluster::Define::Cluster do
|
|
73
73
|
|
74
74
|
it 'include and extend other modules when this one is included' do
|
75
75
|
module ModuleCluster::Define::Cluster::Mock03
|
76
|
-
extend ModuleCluster::Define::Cluster
|
76
|
+
extend ::ModuleCluster::Define::Cluster
|
77
77
|
module Module1
|
78
78
|
end
|
79
79
|
module Module2
|
@@ -81,7 +81,7 @@ describe ModuleCluster::Define::Cluster do
|
|
81
81
|
include_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
82
82
|
respond_to?( :included ).should == true
|
83
83
|
module ModuleProof
|
84
|
-
include ModuleCluster::Define::Cluster::Mock03
|
84
|
+
include ::ModuleCluster::Define::Cluster::Mock03
|
85
85
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
|
86
86
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
87
87
|
eigenclass = class << self ; self ; end
|
@@ -89,7 +89,7 @@ describe ModuleCluster::Define::Cluster do
|
|
89
89
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
90
90
|
end
|
91
91
|
class ClassProof
|
92
|
-
include ModuleCluster::Define::Cluster::Mock03
|
92
|
+
include ::ModuleCluster::Define::Cluster::Mock03
|
93
93
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
|
94
94
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
95
95
|
eigenclass = class << self ; self ; end
|
@@ -105,7 +105,7 @@ describe ModuleCluster::Define::Cluster do
|
|
105
105
|
|
106
106
|
it 'include other modules when this one is extended' do
|
107
107
|
module ModuleCluster::Define::Cluster::Mock04
|
108
|
-
extend ModuleCluster::Define::Cluster
|
108
|
+
extend ::ModuleCluster::Define::Cluster
|
109
109
|
module Module1
|
110
110
|
end
|
111
111
|
module Module2
|
@@ -113,7 +113,7 @@ describe ModuleCluster::Define::Cluster do
|
|
113
113
|
extend_also_includes( Module1, Module2 ).name = :some_name
|
114
114
|
respond_to?( :extended ).should == true
|
115
115
|
module ModuleProof
|
116
|
-
extend ModuleCluster::Define::Cluster::Mock04
|
116
|
+
extend ::ModuleCluster::Define::Cluster::Mock04
|
117
117
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module1 ).should == true
|
118
118
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module2 ).should == true
|
119
119
|
eigenclass = class << self ; self ; end
|
@@ -121,7 +121,7 @@ describe ModuleCluster::Define::Cluster do
|
|
121
121
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module2 ).should == false
|
122
122
|
end
|
123
123
|
class ClassProof
|
124
|
-
extend ModuleCluster::Define::Cluster::Mock04
|
124
|
+
extend ::ModuleCluster::Define::Cluster::Mock04
|
125
125
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module1 ).should == true
|
126
126
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module2 ).should == true
|
127
127
|
eigenclass = class << self ; self ; end
|
@@ -137,7 +137,7 @@ describe ModuleCluster::Define::Cluster do
|
|
137
137
|
|
138
138
|
it 'extend other modules when this one is extended' do
|
139
139
|
module ModuleCluster::Define::Cluster::Mock05
|
140
|
-
extend ModuleCluster::Define::Cluster
|
140
|
+
extend ::ModuleCluster::Define::Cluster
|
141
141
|
module Module1
|
142
142
|
end
|
143
143
|
module Module2
|
@@ -145,7 +145,7 @@ describe ModuleCluster::Define::Cluster do
|
|
145
145
|
extend_also_extends( Module1, Module2 ).name = :some_name
|
146
146
|
respond_to?( :extended ).should == true
|
147
147
|
module ModuleProof
|
148
|
-
extend ModuleCluster::Define::Cluster::Mock05
|
148
|
+
extend ::ModuleCluster::Define::Cluster::Mock05
|
149
149
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module1 ).should == false
|
150
150
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module2 ).should == false
|
151
151
|
eigenclass = class << self ; self ; end
|
@@ -153,7 +153,7 @@ describe ModuleCluster::Define::Cluster do
|
|
153
153
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
|
154
154
|
end
|
155
155
|
class ClassProof
|
156
|
-
extend ModuleCluster::Define::Cluster::Mock05
|
156
|
+
extend ::ModuleCluster::Define::Cluster::Mock05
|
157
157
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module1 ).should == false
|
158
158
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module2 ).should == false
|
159
159
|
eigenclass = class << self ; self ; end
|
@@ -161,7 +161,7 @@ describe ModuleCluster::Define::Cluster do
|
|
161
161
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
|
162
162
|
end
|
163
163
|
Object.new.instance_eval do
|
164
|
-
extend ModuleCluster::Define::Cluster::Mock05
|
164
|
+
extend ::ModuleCluster::Define::Cluster::Mock05
|
165
165
|
eigenclass = class << self ; self ; end
|
166
166
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module1 ).should == true
|
167
167
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
|
@@ -175,7 +175,7 @@ describe ModuleCluster::Define::Cluster do
|
|
175
175
|
|
176
176
|
it 'include and extend other modules when this one is extended' do
|
177
177
|
module ModuleCluster::Define::Cluster::Mock06
|
178
|
-
extend ModuleCluster::Define::Cluster
|
178
|
+
extend ::ModuleCluster::Define::Cluster
|
179
179
|
module Module1
|
180
180
|
end
|
181
181
|
module Module2
|
@@ -183,7 +183,7 @@ describe ModuleCluster::Define::Cluster do
|
|
183
183
|
extend_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
184
184
|
respond_to?( :extended ).should == true
|
185
185
|
module ModuleProof
|
186
|
-
extend ModuleCluster::Define::Cluster::Mock06
|
186
|
+
extend ::ModuleCluster::Define::Cluster::Mock06
|
187
187
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
188
188
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
189
189
|
eigenclass = class << self ; self ; end
|
@@ -191,7 +191,7 @@ describe ModuleCluster::Define::Cluster do
|
|
191
191
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
192
192
|
end
|
193
193
|
class ClassProof
|
194
|
-
extend ModuleCluster::Define::Cluster::Mock06
|
194
|
+
extend ::ModuleCluster::Define::Cluster::Mock06
|
195
195
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
196
196
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
197
197
|
eigenclass = class << self ; self ; end
|
@@ -199,7 +199,7 @@ describe ModuleCluster::Define::Cluster do
|
|
199
199
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
200
200
|
end
|
201
201
|
Object.new.instance_eval do
|
202
|
-
extend ModuleCluster::Define::Cluster::Mock06
|
202
|
+
extend ::ModuleCluster::Define::Cluster::Mock06
|
203
203
|
eigenclass = class << self ; self ; end
|
204
204
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
205
205
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
@@ -213,7 +213,7 @@ describe ModuleCluster::Define::Cluster do
|
|
213
213
|
|
214
214
|
it 'include other modules before this one is included' do
|
215
215
|
module ModuleCluster::Define::Cluster::Mock07
|
216
|
-
extend ModuleCluster::Define::Cluster
|
216
|
+
extend ::ModuleCluster::Define::Cluster
|
217
217
|
module Module1
|
218
218
|
end
|
219
219
|
module Module2
|
@@ -221,7 +221,7 @@ describe ModuleCluster::Define::Cluster do
|
|
221
221
|
include_prepends_includes( Module1, Module2 ).name = :some_name
|
222
222
|
respond_to?( :append_features ).should == true
|
223
223
|
module ModuleProof
|
224
|
-
include ModuleCluster::Define::Cluster::Mock07
|
224
|
+
include ::ModuleCluster::Define::Cluster::Mock07
|
225
225
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module1 ).should == true
|
226
226
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module2 ).should == true
|
227
227
|
eigenclass = class << self ; self ; end
|
@@ -229,7 +229,7 @@ describe ModuleCluster::Define::Cluster do
|
|
229
229
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module2 ).should == false
|
230
230
|
end
|
231
231
|
class ClassProof
|
232
|
-
include ModuleCluster::Define::Cluster::Mock07
|
232
|
+
include ::ModuleCluster::Define::Cluster::Mock07
|
233
233
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module1 ).should == true
|
234
234
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module2 ).should == true
|
235
235
|
eigenclass = class << self ; self ; end
|
@@ -245,7 +245,7 @@ describe ModuleCluster::Define::Cluster do
|
|
245
245
|
|
246
246
|
it 'extend other modules before this one is included' do
|
247
247
|
module ModuleCluster::Define::Cluster::Mock08
|
248
|
-
extend ModuleCluster::Define::Cluster
|
248
|
+
extend ::ModuleCluster::Define::Cluster
|
249
249
|
module Module1
|
250
250
|
end
|
251
251
|
module Module2
|
@@ -253,7 +253,7 @@ describe ModuleCluster::Define::Cluster do
|
|
253
253
|
include_prepends_extends( Module1, Module2 ).name = :some_name
|
254
254
|
respond_to?( :append_features ).should == true
|
255
255
|
module ModuleProof
|
256
|
-
include ModuleCluster::Define::Cluster::Mock08
|
256
|
+
include ::ModuleCluster::Define::Cluster::Mock08
|
257
257
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module1 ).should == false
|
258
258
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module2 ).should == false
|
259
259
|
eigenclass = class << self ; self ; end
|
@@ -261,7 +261,7 @@ describe ModuleCluster::Define::Cluster do
|
|
261
261
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module2 ).should == true
|
262
262
|
end
|
263
263
|
class ClassProof
|
264
|
-
include ModuleCluster::Define::Cluster::Mock08
|
264
|
+
include ::ModuleCluster::Define::Cluster::Mock08
|
265
265
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module1 ).should == false
|
266
266
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module2 ).should == false
|
267
267
|
eigenclass = class << self ; self ; end
|
@@ -277,7 +277,7 @@ describe ModuleCluster::Define::Cluster do
|
|
277
277
|
|
278
278
|
it 'include and extend other modules before this one is included' do
|
279
279
|
module ModuleCluster::Define::Cluster::Mock09
|
280
|
-
extend ModuleCluster::Define::Cluster
|
280
|
+
extend ::ModuleCluster::Define::Cluster
|
281
281
|
module Module1
|
282
282
|
end
|
283
283
|
module Module2
|
@@ -285,7 +285,7 @@ describe ModuleCluster::Define::Cluster do
|
|
285
285
|
include_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
286
286
|
respond_to?( :append_features ).should == true
|
287
287
|
module ModuleProof
|
288
|
-
include ModuleCluster::Define::Cluster::Mock09
|
288
|
+
include ::ModuleCluster::Define::Cluster::Mock09
|
289
289
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
|
290
290
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
291
291
|
eigenclass = class << self ; self ; end
|
@@ -293,7 +293,7 @@ describe ModuleCluster::Define::Cluster do
|
|
293
293
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
294
294
|
end
|
295
295
|
class ClassProof
|
296
|
-
include ModuleCluster::Define::Cluster::Mock09
|
296
|
+
include ::ModuleCluster::Define::Cluster::Mock09
|
297
297
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
|
298
298
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
299
299
|
eigenclass = class << self ; self ; end
|
@@ -309,7 +309,7 @@ describe ModuleCluster::Define::Cluster do
|
|
309
309
|
|
310
310
|
it 'include other modules before this one is extended' do
|
311
311
|
module ModuleCluster::Define::Cluster::Mock10
|
312
|
-
extend ModuleCluster::Define::Cluster
|
312
|
+
extend ::ModuleCluster::Define::Cluster
|
313
313
|
module Module1
|
314
314
|
end
|
315
315
|
module Module2
|
@@ -317,7 +317,7 @@ describe ModuleCluster::Define::Cluster do
|
|
317
317
|
extend_prepends_includes( Module1, Module2 ).name = :some_name
|
318
318
|
respond_to?( :extend_object ).should == true
|
319
319
|
module ModuleProof
|
320
|
-
extend ModuleCluster::Define::Cluster::Mock10
|
320
|
+
extend ::ModuleCluster::Define::Cluster::Mock10
|
321
321
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module1 ).should == true
|
322
322
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module2 ).should == true
|
323
323
|
eigenclass = class << self ; self ; end
|
@@ -325,7 +325,7 @@ describe ModuleCluster::Define::Cluster do
|
|
325
325
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module2 ).should == false
|
326
326
|
end
|
327
327
|
class ClassProof
|
328
|
-
extend ModuleCluster::Define::Cluster::Mock10
|
328
|
+
extend ::ModuleCluster::Define::Cluster::Mock10
|
329
329
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module1 ).should == true
|
330
330
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module2 ).should == true
|
331
331
|
eigenclass = class << self ; self ; end
|
@@ -341,7 +341,7 @@ describe ModuleCluster::Define::Cluster do
|
|
341
341
|
|
342
342
|
it 'extend other modules before this one is extended' do
|
343
343
|
module ModuleCluster::Define::Cluster::Mock11
|
344
|
-
extend ModuleCluster::Define::Cluster
|
344
|
+
extend ::ModuleCluster::Define::Cluster
|
345
345
|
module Module1
|
346
346
|
end
|
347
347
|
module Module2
|
@@ -349,7 +349,7 @@ describe ModuleCluster::Define::Cluster do
|
|
349
349
|
extend_prepends_extends( Module1, Module2 ).name = :some_name
|
350
350
|
respond_to?( :extend_object ).should == true
|
351
351
|
module ModuleProof
|
352
|
-
extend ModuleCluster::Define::Cluster::Mock11
|
352
|
+
extend ::ModuleCluster::Define::Cluster::Mock11
|
353
353
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module1 ).should == false
|
354
354
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module2 ).should == false
|
355
355
|
eigenclass = class << self ; self ; end
|
@@ -357,7 +357,7 @@ describe ModuleCluster::Define::Cluster do
|
|
357
357
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
|
358
358
|
end
|
359
359
|
class ClassProof
|
360
|
-
extend ModuleCluster::Define::Cluster::Mock11
|
360
|
+
extend ::ModuleCluster::Define::Cluster::Mock11
|
361
361
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module1 ).should == false
|
362
362
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module2 ).should == false
|
363
363
|
eigenclass = class << self ; self ; end
|
@@ -365,7 +365,7 @@ describe ModuleCluster::Define::Cluster do
|
|
365
365
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
|
366
366
|
end
|
367
367
|
Object.new.instance_eval do
|
368
|
-
extend ModuleCluster::Define::Cluster::Mock11
|
368
|
+
extend ::ModuleCluster::Define::Cluster::Mock11
|
369
369
|
eigenclass = class << self ; self ; end
|
370
370
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module1 ).should == true
|
371
371
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
|
@@ -379,7 +379,7 @@ describe ModuleCluster::Define::Cluster do
|
|
379
379
|
|
380
380
|
it 'include and extend other modules before this one is extended' do
|
381
381
|
module ModuleCluster::Define::Cluster::Mock12
|
382
|
-
extend ModuleCluster::Define::Cluster
|
382
|
+
extend ::ModuleCluster::Define::Cluster
|
383
383
|
module Module1
|
384
384
|
end
|
385
385
|
module Module2
|
@@ -387,7 +387,7 @@ describe ModuleCluster::Define::Cluster do
|
|
387
387
|
extend_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
388
388
|
respond_to?( :extend_object ).should == true
|
389
389
|
module ModuleProof
|
390
|
-
extend ModuleCluster::Define::Cluster::Mock12
|
390
|
+
extend ::ModuleCluster::Define::Cluster::Mock12
|
391
391
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
392
392
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
393
393
|
eigenclass = class << self ; self ; end
|
@@ -395,7 +395,7 @@ describe ModuleCluster::Define::Cluster do
|
|
395
395
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
396
396
|
end
|
397
397
|
class ClassProof
|
398
|
-
extend ModuleCluster::Define::Cluster::Mock12
|
398
|
+
extend ::ModuleCluster::Define::Cluster::Mock12
|
399
399
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
400
400
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
401
401
|
eigenclass = class << self ; self ; end
|
@@ -403,7 +403,7 @@ describe ModuleCluster::Define::Cluster do
|
|
403
403
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
404
404
|
end
|
405
405
|
Object.new.instance_eval do
|
406
|
-
extend ModuleCluster::Define::Cluster::Mock12
|
406
|
+
extend ::ModuleCluster::Define::Cluster::Mock12
|
407
407
|
eigenclass = class << self ; self ; end
|
408
408
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
409
409
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
@@ -417,7 +417,7 @@ describe ModuleCluster::Define::Cluster do
|
|
417
417
|
|
418
418
|
it 'can include other modules when this one is included in or extends a class' do
|
419
419
|
module ModuleCluster::Define::Cluster::Mock13
|
420
|
-
extend ModuleCluster::Define::Cluster
|
420
|
+
extend ::ModuleCluster::Define::Cluster
|
421
421
|
module Module1
|
422
422
|
end
|
423
423
|
module Module2
|
@@ -425,7 +425,7 @@ describe ModuleCluster::Define::Cluster do
|
|
425
425
|
include_or_extend_also_includes( Module1, Module2 ).name = :some_name
|
426
426
|
respond_to?( :append_features ).should == true
|
427
427
|
module ModuleProof
|
428
|
-
include ModuleCluster::Define::Cluster::Mock13
|
428
|
+
include ::ModuleCluster::Define::Cluster::Mock13
|
429
429
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
430
430
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
431
431
|
eigenclass = class << self ; self ; end
|
@@ -433,7 +433,7 @@ describe ModuleCluster::Define::Cluster do
|
|
433
433
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
434
434
|
end
|
435
435
|
module ModuleProof2
|
436
|
-
extend ModuleCluster::Define::Cluster::Mock13
|
436
|
+
extend ::ModuleCluster::Define::Cluster::Mock13
|
437
437
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
438
438
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
439
439
|
eigenclass = class << self ; self ; end
|
@@ -441,7 +441,7 @@ describe ModuleCluster::Define::Cluster do
|
|
441
441
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
442
442
|
end
|
443
443
|
class ClassProof
|
444
|
-
include ModuleCluster::Define::Cluster::Mock13
|
444
|
+
include ::ModuleCluster::Define::Cluster::Mock13
|
445
445
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
446
446
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
447
447
|
eigenclass = class << self ; self ; end
|
@@ -449,7 +449,7 @@ describe ModuleCluster::Define::Cluster do
|
|
449
449
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
450
450
|
end
|
451
451
|
class ClassProof2
|
452
|
-
include ModuleCluster::Define::Cluster::Mock13
|
452
|
+
include ::ModuleCluster::Define::Cluster::Mock13
|
453
453
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
454
454
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
455
455
|
eigenclass = class << self ; self ; end
|
@@ -465,7 +465,7 @@ describe ModuleCluster::Define::Cluster do
|
|
465
465
|
|
466
466
|
it 'can extend other modules when this one is included in or extends a class' do
|
467
467
|
module ModuleCluster::Define::Cluster::Mock14
|
468
|
-
extend ModuleCluster::Define::Cluster
|
468
|
+
extend ::ModuleCluster::Define::Cluster
|
469
469
|
module Module1
|
470
470
|
end
|
471
471
|
module Module2
|
@@ -473,7 +473,7 @@ describe ModuleCluster::Define::Cluster do
|
|
473
473
|
include_or_extend_also_extends( Module1, Module2 ).name = :some_name
|
474
474
|
respond_to?( :included ).should == true
|
475
475
|
module ModuleProof
|
476
|
-
include ModuleCluster::Define::Cluster::Mock14
|
476
|
+
include ::ModuleCluster::Define::Cluster::Mock14
|
477
477
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
478
478
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
479
479
|
eigenclass = class << self ; self ; end
|
@@ -481,7 +481,7 @@ describe ModuleCluster::Define::Cluster do
|
|
481
481
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
482
482
|
end
|
483
483
|
module ModuleProof2
|
484
|
-
extend ModuleCluster::Define::Cluster::Mock14
|
484
|
+
extend ::ModuleCluster::Define::Cluster::Mock14
|
485
485
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
486
486
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
487
487
|
eigenclass = class << self ; self ; end
|
@@ -489,7 +489,7 @@ describe ModuleCluster::Define::Cluster do
|
|
489
489
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
490
490
|
end
|
491
491
|
class ClassProof
|
492
|
-
include ModuleCluster::Define::Cluster::Mock14
|
492
|
+
include ::ModuleCluster::Define::Cluster::Mock14
|
493
493
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
494
494
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
495
495
|
eigenclass = class << self ; self ; end
|
@@ -497,7 +497,7 @@ describe ModuleCluster::Define::Cluster do
|
|
497
497
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
498
498
|
end
|
499
499
|
class ClassProof2
|
500
|
-
extend ModuleCluster::Define::Cluster::Mock14
|
500
|
+
extend ::ModuleCluster::Define::Cluster::Mock14
|
501
501
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
502
502
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
503
503
|
eigenclass = class << self ; self ; end
|
@@ -513,7 +513,7 @@ describe ModuleCluster::Define::Cluster do
|
|
513
513
|
|
514
514
|
it 'can include and extend other modules when this one is included in or extends a class' do
|
515
515
|
module ModuleCluster::Define::Cluster::Mock15
|
516
|
-
extend ModuleCluster::Define::Cluster
|
516
|
+
extend ::ModuleCluster::Define::Cluster
|
517
517
|
module Module1
|
518
518
|
end
|
519
519
|
module Module2
|
@@ -521,7 +521,7 @@ describe ModuleCluster::Define::Cluster do
|
|
521
521
|
include_or_extend_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
522
522
|
respond_to?( :included ).should == true
|
523
523
|
module ModuleProof
|
524
|
-
include ModuleCluster::Define::Cluster::Mock15
|
524
|
+
include ::ModuleCluster::Define::Cluster::Mock15
|
525
525
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
526
526
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
527
527
|
eigenclass = class << self ; self ; end
|
@@ -529,7 +529,7 @@ describe ModuleCluster::Define::Cluster do
|
|
529
529
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
530
530
|
end
|
531
531
|
module ModuleProo2
|
532
|
-
extend ModuleCluster::Define::Cluster::Mock15
|
532
|
+
extend ::ModuleCluster::Define::Cluster::Mock15
|
533
533
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
534
534
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
535
535
|
eigenclass = class << self ; self ; end
|
@@ -537,7 +537,7 @@ describe ModuleCluster::Define::Cluster do
|
|
537
537
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
538
538
|
end
|
539
539
|
class ClassProof
|
540
|
-
include ModuleCluster::Define::Cluster::Mock15
|
540
|
+
include ::ModuleCluster::Define::Cluster::Mock15
|
541
541
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
542
542
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
543
543
|
eigenclass = class << self ; self ; end
|
@@ -545,7 +545,7 @@ describe ModuleCluster::Define::Cluster do
|
|
545
545
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
546
546
|
end
|
547
547
|
class ClassProof2
|
548
|
-
extend ModuleCluster::Define::Cluster::Mock15
|
548
|
+
extend ::ModuleCluster::Define::Cluster::Mock15
|
549
549
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
550
550
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
551
551
|
eigenclass = class << self ; self ; end
|
@@ -561,7 +561,7 @@ describe ModuleCluster::Define::Cluster do
|
|
561
561
|
|
562
562
|
it 'can include other modules before this one when this one is included in or extends a class' do
|
563
563
|
module ModuleCluster::Define::Cluster::Mock16
|
564
|
-
extend ModuleCluster::Define::Cluster
|
564
|
+
extend ::ModuleCluster::Define::Cluster
|
565
565
|
module Module1
|
566
566
|
end
|
567
567
|
module Module2
|
@@ -569,7 +569,7 @@ describe ModuleCluster::Define::Cluster do
|
|
569
569
|
include_or_extend_prepends_includes( Module1, Module2 ).name = :some_name
|
570
570
|
respond_to?( :append_features ).should == true
|
571
571
|
module ModuleProof
|
572
|
-
include ModuleCluster::Define::Cluster::Mock16
|
572
|
+
include ::ModuleCluster::Define::Cluster::Mock16
|
573
573
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
574
574
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
575
575
|
eigenclass = class << self ; self ; end
|
@@ -577,7 +577,7 @@ describe ModuleCluster::Define::Cluster do
|
|
577
577
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
578
578
|
end
|
579
579
|
module ModuleProof2
|
580
|
-
extend ModuleCluster::Define::Cluster::Mock16
|
580
|
+
extend ::ModuleCluster::Define::Cluster::Mock16
|
581
581
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
582
582
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
583
583
|
eigenclass = class << self ; self ; end
|
@@ -585,7 +585,7 @@ describe ModuleCluster::Define::Cluster do
|
|
585
585
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
586
586
|
end
|
587
587
|
class ClassProof
|
588
|
-
include ModuleCluster::Define::Cluster::Mock16
|
588
|
+
include ::ModuleCluster::Define::Cluster::Mock16
|
589
589
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
590
590
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
591
591
|
eigenclass = class << self ; self ; end
|
@@ -593,7 +593,7 @@ describe ModuleCluster::Define::Cluster do
|
|
593
593
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
594
594
|
end
|
595
595
|
class ClassProof2
|
596
|
-
extend ModuleCluster::Define::Cluster::Mock16
|
596
|
+
extend ::ModuleCluster::Define::Cluster::Mock16
|
597
597
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
598
598
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
599
599
|
eigenclass = class << self ; self ; end
|
@@ -609,7 +609,7 @@ describe ModuleCluster::Define::Cluster do
|
|
609
609
|
|
610
610
|
it 'can extend other modules before this one when this one is included in or extends a class' do
|
611
611
|
module ModuleCluster::Define::Cluster::Mock17
|
612
|
-
extend ModuleCluster::Define::Cluster
|
612
|
+
extend ::ModuleCluster::Define::Cluster
|
613
613
|
module Module1
|
614
614
|
end
|
615
615
|
module Module2
|
@@ -617,7 +617,7 @@ describe ModuleCluster::Define::Cluster do
|
|
617
617
|
include_or_extend_prepends_extends( Module1, Module2 ).name = :some_name
|
618
618
|
respond_to?( :extend_object ).should == true
|
619
619
|
module ModuleProof
|
620
|
-
include ModuleCluster::Define::Cluster::Mock17
|
620
|
+
include ::ModuleCluster::Define::Cluster::Mock17
|
621
621
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
622
622
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
623
623
|
eigenclass = class << self ; self ; end
|
@@ -625,7 +625,7 @@ describe ModuleCluster::Define::Cluster do
|
|
625
625
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
626
626
|
end
|
627
627
|
module ModuleProof2
|
628
|
-
extend ModuleCluster::Define::Cluster::Mock17
|
628
|
+
extend ::ModuleCluster::Define::Cluster::Mock17
|
629
629
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
630
630
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
631
631
|
eigenclass = class << self ; self ; end
|
@@ -633,7 +633,7 @@ describe ModuleCluster::Define::Cluster do
|
|
633
633
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
634
634
|
end
|
635
635
|
class ClassProof
|
636
|
-
include ModuleCluster::Define::Cluster::Mock17
|
636
|
+
include ::ModuleCluster::Define::Cluster::Mock17
|
637
637
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
638
638
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
639
639
|
eigenclass = class << self ; self ; end
|
@@ -641,7 +641,7 @@ describe ModuleCluster::Define::Cluster do
|
|
641
641
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
642
642
|
end
|
643
643
|
class ClassProof2
|
644
|
-
extend ModuleCluster::Define::Cluster::Mock17
|
644
|
+
extend ::ModuleCluster::Define::Cluster::Mock17
|
645
645
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
646
646
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
647
647
|
eigenclass = class << self ; self ; end
|
@@ -649,7 +649,7 @@ describe ModuleCluster::Define::Cluster do
|
|
649
649
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
650
650
|
end
|
651
651
|
Object.new.instance_eval do
|
652
|
-
extend ModuleCluster::Define::Cluster::Mock17
|
652
|
+
extend ::ModuleCluster::Define::Cluster::Mock17
|
653
653
|
eigenclass = class << self ; self ; end
|
654
654
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
655
655
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
@@ -663,7 +663,7 @@ describe ModuleCluster::Define::Cluster do
|
|
663
663
|
|
664
664
|
it 'can include and extend other modules before this one when this one is included in or extends a class' do
|
665
665
|
module ModuleCluster::Define::Cluster::Mock18
|
666
|
-
extend ModuleCluster::Define::Cluster
|
666
|
+
extend ::ModuleCluster::Define::Cluster
|
667
667
|
module Module1
|
668
668
|
end
|
669
669
|
module Module2
|
@@ -671,7 +671,7 @@ describe ModuleCluster::Define::Cluster do
|
|
671
671
|
include_or_extend_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
672
672
|
respond_to?( :append_features ).should == true
|
673
673
|
module ModuleProof
|
674
|
-
include ModuleCluster::Define::Cluster::Mock18
|
674
|
+
include ::ModuleCluster::Define::Cluster::Mock18
|
675
675
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
676
676
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
677
677
|
eigenclass = class << self ; self ; end
|
@@ -679,7 +679,7 @@ describe ModuleCluster::Define::Cluster do
|
|
679
679
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
680
680
|
end
|
681
681
|
module ModuleProof2
|
682
|
-
extend ModuleCluster::Define::Cluster::Mock18
|
682
|
+
extend ::ModuleCluster::Define::Cluster::Mock18
|
683
683
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
684
684
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
685
685
|
eigenclass = class << self ; self ; end
|
@@ -687,7 +687,7 @@ describe ModuleCluster::Define::Cluster do
|
|
687
687
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
688
688
|
end
|
689
689
|
class ClassProof
|
690
|
-
include ModuleCluster::Define::Cluster::Mock18
|
690
|
+
include ::ModuleCluster::Define::Cluster::Mock18
|
691
691
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
692
692
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
693
693
|
eigenclass = class << self ; self ; end
|
@@ -695,7 +695,7 @@ describe ModuleCluster::Define::Cluster do
|
|
695
695
|
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
696
696
|
end
|
697
697
|
class ClassProof2
|
698
|
-
extend ModuleCluster::Define::Cluster::Mock18
|
698
|
+
extend ::ModuleCluster::Define::Cluster::Mock18
|
699
699
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
700
700
|
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
701
701
|
eigenclass = class << self ; self ; end
|