module-cluster 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +66 -29
- data/README.rdoc +66 -29
- data/lib/module-cluster.rb +18 -0
- data/lib/module-cluster/ModuleCluster.rb +2 -7
- data/lib/module-cluster/ModuleCluster/Define/Block.rb +4 -4
- data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +11 -8
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +19 -12
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +19 -12
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +19 -12
- data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +3 -2
- data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +11 -8
- data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +19 -12
- data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +39 -46
- data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +34 -33
- data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +31 -42
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +53 -62
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +49 -60
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +49 -60
- data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +3 -4
- data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +39 -46
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +55 -54
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +34 -33
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +4 -4
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/ClusterStack.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/PerformCascades.rb +64 -46
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack.rb +7 -5
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block.rb +3 -3
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Class.rb +2 -2
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Instance.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Module.rb +2 -2
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Set.rb +4 -1
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Extends.rb +45 -13
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Includes.rb +36 -10
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsExtends.rb +47 -15
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsIncludes.rb +38 -12
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set.rb +29 -1
- data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +8 -3
- data/spec/ModuleCluster/Define/ClassCluster_spec.rb +18 -18
- data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +10 -10
- data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +18 -18
- data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +18 -18
- data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +18 -18
- data/spec/ModuleCluster/Define/Cluster_spec.rb +18 -18
- data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +2 -2
- data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +18 -18
- data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +18 -18
- data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +10 -10
- data/spec/ModuleCluster_spec.rb +5 -5
- data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +110 -2
- metadata +2 -2
@@ -14,7 +14,7 @@ describe ModuleCluster::Define::Cluster do
|
|
14
14
|
end
|
15
15
|
module Module2
|
16
16
|
end
|
17
|
-
include_also_includes( Module1, Module2 )
|
17
|
+
include_also_includes( Module1, Module2 ).name = :some_name
|
18
18
|
respond_to?( :included ).should == true
|
19
19
|
module ModuleProof
|
20
20
|
include ModuleCluster::Define::Cluster::Mock01
|
@@ -46,7 +46,7 @@ describe ModuleCluster::Define::Cluster do
|
|
46
46
|
end
|
47
47
|
module Module2
|
48
48
|
end
|
49
|
-
include_also_extends( Module1, Module2 )
|
49
|
+
include_also_extends( Module1, Module2 ).name = :some_name
|
50
50
|
respond_to?( :included ).should == true
|
51
51
|
module ModuleProof
|
52
52
|
include ModuleCluster::Define::Cluster::Mock02
|
@@ -78,7 +78,7 @@ describe ModuleCluster::Define::Cluster do
|
|
78
78
|
end
|
79
79
|
module Module2
|
80
80
|
end
|
81
|
-
include_also_includes_and_extends( Module1, Module2 )
|
81
|
+
include_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
82
82
|
respond_to?( :included ).should == true
|
83
83
|
module ModuleProof
|
84
84
|
include ModuleCluster::Define::Cluster::Mock03
|
@@ -110,7 +110,7 @@ describe ModuleCluster::Define::Cluster do
|
|
110
110
|
end
|
111
111
|
module Module2
|
112
112
|
end
|
113
|
-
extend_also_includes( Module1, Module2 )
|
113
|
+
extend_also_includes( Module1, Module2 ).name = :some_name
|
114
114
|
respond_to?( :extended ).should == true
|
115
115
|
module ModuleProof
|
116
116
|
extend ModuleCluster::Define::Cluster::Mock04
|
@@ -142,7 +142,7 @@ describe ModuleCluster::Define::Cluster do
|
|
142
142
|
end
|
143
143
|
module Module2
|
144
144
|
end
|
145
|
-
extend_also_extends( Module1, Module2 )
|
145
|
+
extend_also_extends( Module1, Module2 ).name = :some_name
|
146
146
|
respond_to?( :extended ).should == true
|
147
147
|
module ModuleProof
|
148
148
|
extend ModuleCluster::Define::Cluster::Mock05
|
@@ -180,7 +180,7 @@ describe ModuleCluster::Define::Cluster do
|
|
180
180
|
end
|
181
181
|
module Module2
|
182
182
|
end
|
183
|
-
extend_also_includes_and_extends( Module1, Module2 )
|
183
|
+
extend_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
184
184
|
respond_to?( :extended ).should == true
|
185
185
|
module ModuleProof
|
186
186
|
extend ModuleCluster::Define::Cluster::Mock06
|
@@ -218,7 +218,7 @@ describe ModuleCluster::Define::Cluster do
|
|
218
218
|
end
|
219
219
|
module Module2
|
220
220
|
end
|
221
|
-
include_prepends_includes( Module1, Module2 )
|
221
|
+
include_prepends_includes( Module1, Module2 ).name = :some_name
|
222
222
|
respond_to?( :append_features ).should == true
|
223
223
|
module ModuleProof
|
224
224
|
include ModuleCluster::Define::Cluster::Mock07
|
@@ -250,7 +250,7 @@ describe ModuleCluster::Define::Cluster do
|
|
250
250
|
end
|
251
251
|
module Module2
|
252
252
|
end
|
253
|
-
include_prepends_extends( Module1, Module2 )
|
253
|
+
include_prepends_extends( Module1, Module2 ).name = :some_name
|
254
254
|
respond_to?( :append_features ).should == true
|
255
255
|
module ModuleProof
|
256
256
|
include ModuleCluster::Define::Cluster::Mock08
|
@@ -282,7 +282,7 @@ describe ModuleCluster::Define::Cluster do
|
|
282
282
|
end
|
283
283
|
module Module2
|
284
284
|
end
|
285
|
-
include_prepends_includes_and_extends( Module1, Module2 )
|
285
|
+
include_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
286
286
|
respond_to?( :append_features ).should == true
|
287
287
|
module ModuleProof
|
288
288
|
include ModuleCluster::Define::Cluster::Mock09
|
@@ -314,7 +314,7 @@ describe ModuleCluster::Define::Cluster do
|
|
314
314
|
end
|
315
315
|
module Module2
|
316
316
|
end
|
317
|
-
extend_prepends_includes( Module1, Module2 )
|
317
|
+
extend_prepends_includes( Module1, Module2 ).name = :some_name
|
318
318
|
respond_to?( :extend_object ).should == true
|
319
319
|
module ModuleProof
|
320
320
|
extend ModuleCluster::Define::Cluster::Mock10
|
@@ -346,7 +346,7 @@ describe ModuleCluster::Define::Cluster do
|
|
346
346
|
end
|
347
347
|
module Module2
|
348
348
|
end
|
349
|
-
extend_prepends_extends( Module1, Module2 )
|
349
|
+
extend_prepends_extends( Module1, Module2 ).name = :some_name
|
350
350
|
respond_to?( :extend_object ).should == true
|
351
351
|
module ModuleProof
|
352
352
|
extend ModuleCluster::Define::Cluster::Mock11
|
@@ -384,7 +384,7 @@ describe ModuleCluster::Define::Cluster do
|
|
384
384
|
end
|
385
385
|
module Module2
|
386
386
|
end
|
387
|
-
extend_prepends_includes_and_extends( Module1, Module2 )
|
387
|
+
extend_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
388
388
|
respond_to?( :extend_object ).should == true
|
389
389
|
module ModuleProof
|
390
390
|
extend ModuleCluster::Define::Cluster::Mock12
|
@@ -422,7 +422,7 @@ describe ModuleCluster::Define::Cluster do
|
|
422
422
|
end
|
423
423
|
module Module2
|
424
424
|
end
|
425
|
-
include_or_extend_also_includes( Module1, Module2 )
|
425
|
+
include_or_extend_also_includes( Module1, Module2 ).name = :some_name
|
426
426
|
respond_to?( :append_features ).should == true
|
427
427
|
module ModuleProof
|
428
428
|
include ModuleCluster::Define::Cluster::Mock13
|
@@ -470,7 +470,7 @@ describe ModuleCluster::Define::Cluster do
|
|
470
470
|
end
|
471
471
|
module Module2
|
472
472
|
end
|
473
|
-
include_or_extend_also_extends( Module1, Module2 )
|
473
|
+
include_or_extend_also_extends( Module1, Module2 ).name = :some_name
|
474
474
|
respond_to?( :included ).should == true
|
475
475
|
module ModuleProof
|
476
476
|
include ModuleCluster::Define::Cluster::Mock14
|
@@ -518,7 +518,7 @@ describe ModuleCluster::Define::Cluster do
|
|
518
518
|
end
|
519
519
|
module Module2
|
520
520
|
end
|
521
|
-
include_or_extend_also_includes_and_extends( Module1, Module2 )
|
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
524
|
include ModuleCluster::Define::Cluster::Mock15
|
@@ -566,7 +566,7 @@ describe ModuleCluster::Define::Cluster do
|
|
566
566
|
end
|
567
567
|
module Module2
|
568
568
|
end
|
569
|
-
include_or_extend_prepends_includes( Module1, Module2 )
|
569
|
+
include_or_extend_prepends_includes( Module1, Module2 ).name = :some_name
|
570
570
|
respond_to?( :append_features ).should == true
|
571
571
|
module ModuleProof
|
572
572
|
include ModuleCluster::Define::Cluster::Mock16
|
@@ -614,7 +614,7 @@ describe ModuleCluster::Define::Cluster do
|
|
614
614
|
end
|
615
615
|
module Module2
|
616
616
|
end
|
617
|
-
include_or_extend_prepends_extends( Module1, Module2 )
|
617
|
+
include_or_extend_prepends_extends( Module1, Module2 ).name = :some_name
|
618
618
|
respond_to?( :extend_object ).should == true
|
619
619
|
module ModuleProof
|
620
620
|
include ModuleCluster::Define::Cluster::Mock17
|
@@ -668,7 +668,7 @@ describe ModuleCluster::Define::Cluster do
|
|
668
668
|
end
|
669
669
|
module Module2
|
670
670
|
end
|
671
|
-
include_or_extend_prepends_includes_and_extends( Module1, Module2 )
|
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
674
|
include ModuleCluster::Define::Cluster::Mock18
|
@@ -34,7 +34,7 @@ describe ModuleCluster::Define::InstanceCluster do
|
|
34
34
|
end
|
35
35
|
module Module2
|
36
36
|
end
|
37
|
-
instance_extend_also_extends( Module1, Module2 )
|
37
|
+
instance_extend_also_extends( Module1, Module2 ).name = :some_name
|
38
38
|
respond_to?( :extended ).should == true
|
39
39
|
module ModuleProof
|
40
40
|
extend ModuleCluster::Define::InstanceCluster::Mock01
|
@@ -72,7 +72,7 @@ describe ModuleCluster::Define::InstanceCluster do
|
|
72
72
|
end
|
73
73
|
module Module2
|
74
74
|
end
|
75
|
-
instance_extend_prepends_extends( Module1, Module2 )
|
75
|
+
instance_extend_prepends_extends( Module1, Module2 ).name = :some_name
|
76
76
|
respond_to?( :extend_object ).should == true
|
77
77
|
module ModuleProof
|
78
78
|
extend ModuleCluster::Define::InstanceCluster::Mock02
|
@@ -34,7 +34,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
34
34
|
end
|
35
35
|
module Module2
|
36
36
|
end
|
37
|
-
module_include_also_includes( Module1, Module2 )
|
37
|
+
module_include_also_includes( Module1, Module2 ).name = :some_name
|
38
38
|
respond_to?( :included ).should == true
|
39
39
|
module ModuleProof
|
40
40
|
include ModuleCluster::Define::ModuleCluster::Mock01
|
@@ -66,7 +66,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
66
66
|
end
|
67
67
|
module Module2
|
68
68
|
end
|
69
|
-
module_include_also_extends( Module1, Module2 )
|
69
|
+
module_include_also_extends( Module1, Module2 ).name = :some_name
|
70
70
|
respond_to?( :included ).should == true
|
71
71
|
module ModuleProof
|
72
72
|
include ModuleCluster::Define::ModuleCluster::Mock02
|
@@ -98,7 +98,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
98
98
|
end
|
99
99
|
module Module2
|
100
100
|
end
|
101
|
-
module_include_also_includes_and_extends( Module1, Module2 )
|
101
|
+
module_include_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
102
102
|
respond_to?( :included ).should == true
|
103
103
|
module ModuleProof
|
104
104
|
include ModuleCluster::Define::ModuleCluster::Mock03
|
@@ -130,7 +130,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
130
130
|
end
|
131
131
|
module Module2
|
132
132
|
end
|
133
|
-
module_extend_also_includes( Module1, Module2 )
|
133
|
+
module_extend_also_includes( Module1, Module2 ).name = :some_name
|
134
134
|
respond_to?( :extended ).should == true
|
135
135
|
module ModuleProof
|
136
136
|
extend ModuleCluster::Define::ModuleCluster::Mock04
|
@@ -162,7 +162,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
162
162
|
end
|
163
163
|
module Module2
|
164
164
|
end
|
165
|
-
module_extend_also_extends( Module1, Module2 )
|
165
|
+
module_extend_also_extends( Module1, Module2 ).name = :some_name
|
166
166
|
respond_to?( :extended ).should == true
|
167
167
|
module ModuleProof
|
168
168
|
extend ModuleCluster::Define::ModuleCluster::Mock05
|
@@ -200,7 +200,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
200
200
|
end
|
201
201
|
module Module2
|
202
202
|
end
|
203
|
-
module_extend_also_includes_and_extends( Module1, Module2 )
|
203
|
+
module_extend_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
204
204
|
respond_to?( :extended ).should == true
|
205
205
|
module ModuleProof
|
206
206
|
extend ModuleCluster::Define::ModuleCluster::Mock06
|
@@ -238,7 +238,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
238
238
|
end
|
239
239
|
module Module2
|
240
240
|
end
|
241
|
-
module_include_prepends_includes( Module1, Module2 )
|
241
|
+
module_include_prepends_includes( Module1, Module2 ).name = :some_name
|
242
242
|
respond_to?( :append_features ).should == true
|
243
243
|
module ModuleProof
|
244
244
|
include ModuleCluster::Define::ModuleCluster::Mock07
|
@@ -270,7 +270,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
270
270
|
end
|
271
271
|
module Module2
|
272
272
|
end
|
273
|
-
module_include_prepends_extends( Module1, Module2 )
|
273
|
+
module_include_prepends_extends( Module1, Module2 ).name = :some_name
|
274
274
|
respond_to?( :append_features ).should == true
|
275
275
|
module ModuleProof
|
276
276
|
include ModuleCluster::Define::ModuleCluster::Mock08
|
@@ -302,7 +302,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
302
302
|
end
|
303
303
|
module Module2
|
304
304
|
end
|
305
|
-
module_include_prepends_includes_and_extends( Module1, Module2 )
|
305
|
+
module_include_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
306
306
|
respond_to?( :append_features ).should == true
|
307
307
|
module ModuleProof
|
308
308
|
include ModuleCluster::Define::ModuleCluster::Mock09
|
@@ -334,7 +334,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
334
334
|
end
|
335
335
|
module Module2
|
336
336
|
end
|
337
|
-
module_extend_prepends_includes( Module1, Module2 )
|
337
|
+
module_extend_prepends_includes( Module1, Module2 ).name = :some_name
|
338
338
|
respond_to?( :extend_object ).should == true
|
339
339
|
module ModuleProof
|
340
340
|
extend ModuleCluster::Define::ModuleCluster::Mock10
|
@@ -366,7 +366,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
366
366
|
end
|
367
367
|
module Module2
|
368
368
|
end
|
369
|
-
module_extend_prepends_extends( Module1, Module2 )
|
369
|
+
module_extend_prepends_extends( Module1, Module2 ).name = :some_name
|
370
370
|
respond_to?( :extend_object ).should == true
|
371
371
|
module ModuleProof
|
372
372
|
extend ModuleCluster::Define::ModuleCluster::Mock11
|
@@ -404,7 +404,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
404
404
|
end
|
405
405
|
module Module2
|
406
406
|
end
|
407
|
-
module_extend_prepends_includes_and_extends( Module1, Module2 )
|
407
|
+
module_extend_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
408
408
|
respond_to?( :extend_object ).should == true
|
409
409
|
module ModuleProof
|
410
410
|
extend ModuleCluster::Define::ModuleCluster::Mock12
|
@@ -442,7 +442,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
442
442
|
end
|
443
443
|
module Module2
|
444
444
|
end
|
445
|
-
module_include_or_extend_also_includes( Module1, Module2 )
|
445
|
+
module_include_or_extend_also_includes( Module1, Module2 ).name = :some_name
|
446
446
|
respond_to?( :append_features ).should == true
|
447
447
|
module ModuleProof
|
448
448
|
include ModuleCluster::Define::ModuleCluster::Mock13
|
@@ -490,7 +490,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
490
490
|
end
|
491
491
|
module Module2
|
492
492
|
end
|
493
|
-
module_include_or_extend_also_extends( Module1, Module2 )
|
493
|
+
module_include_or_extend_also_extends( Module1, Module2 ).name = :some_name
|
494
494
|
respond_to?( :included ).should == true
|
495
495
|
module ModuleProof
|
496
496
|
include ModuleCluster::Define::ModuleCluster::Mock14
|
@@ -538,7 +538,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
538
538
|
end
|
539
539
|
module Module2
|
540
540
|
end
|
541
|
-
module_include_or_extend_also_includes_and_extends( Module1, Module2 )
|
541
|
+
module_include_or_extend_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
542
542
|
respond_to?( :included ).should == true
|
543
543
|
module ModuleProof
|
544
544
|
include ModuleCluster::Define::ModuleCluster::Mock15
|
@@ -586,7 +586,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
586
586
|
end
|
587
587
|
module Module2
|
588
588
|
end
|
589
|
-
module_include_or_extend_prepends_includes( Module1, Module2 )
|
589
|
+
module_include_or_extend_prepends_includes( Module1, Module2 ).name = :some_name
|
590
590
|
respond_to?( :append_features ).should == true
|
591
591
|
module ModuleProof
|
592
592
|
include ModuleCluster::Define::ModuleCluster::Mock16
|
@@ -634,7 +634,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
634
634
|
end
|
635
635
|
module Module2
|
636
636
|
end
|
637
|
-
module_include_or_extend_prepends_extends( Module1, Module2 )
|
637
|
+
module_include_or_extend_prepends_extends( Module1, Module2 ).name = :some_name
|
638
638
|
respond_to?( :extend_object ).should == true
|
639
639
|
module ModuleProof
|
640
640
|
include ModuleCluster::Define::ModuleCluster::Mock17
|
@@ -688,7 +688,7 @@ describe ModuleCluster::Define::ModuleCluster do
|
|
688
688
|
end
|
689
689
|
module Module2
|
690
690
|
end
|
691
|
-
module_include_or_extend_prepends_includes_and_extends( Module1, Module2 )
|
691
|
+
module_include_or_extend_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
692
692
|
respond_to?( :append_features ).should == true
|
693
693
|
module ModuleProof
|
694
694
|
include ModuleCluster::Define::ModuleCluster::Mock18
|
@@ -34,7 +34,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
34
34
|
end
|
35
35
|
module Module2
|
36
36
|
end
|
37
|
-
module_or_class_include_also_includes( Module1, Module2 )
|
37
|
+
module_or_class_include_also_includes( Module1, Module2 ).name = :some_name
|
38
38
|
respond_to?( :included ).should == true
|
39
39
|
module ModuleProof
|
40
40
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock01
|
@@ -66,7 +66,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
66
66
|
end
|
67
67
|
module Module2
|
68
68
|
end
|
69
|
-
module_or_class_include_also_extends( Module1, Module2 )
|
69
|
+
module_or_class_include_also_extends( Module1, Module2 ).name = :some_name
|
70
70
|
respond_to?( :included ).should == true
|
71
71
|
module ModuleProof
|
72
72
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock02
|
@@ -98,7 +98,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
98
98
|
end
|
99
99
|
module Module2
|
100
100
|
end
|
101
|
-
module_or_class_include_also_includes_and_extends( Module1, Module2 )
|
101
|
+
module_or_class_include_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
102
102
|
respond_to?( :included ).should == true
|
103
103
|
module ModuleProof
|
104
104
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock03
|
@@ -130,7 +130,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
130
130
|
end
|
131
131
|
module Module2
|
132
132
|
end
|
133
|
-
module_or_class_extend_also_includes( Module1, Module2 )
|
133
|
+
module_or_class_extend_also_includes( Module1, Module2 ).name = :some_name
|
134
134
|
respond_to?( :extended ).should == true
|
135
135
|
module ModuleProof
|
136
136
|
extend ModuleCluster::Define::ModuleOrClassCluster::Mock04
|
@@ -162,7 +162,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
162
162
|
end
|
163
163
|
module Module2
|
164
164
|
end
|
165
|
-
module_or_class_extend_also_extends( Module1, Module2 )
|
165
|
+
module_or_class_extend_also_extends( Module1, Module2 ).name = :some_name
|
166
166
|
respond_to?( :extended ).should == true
|
167
167
|
module ModuleProof
|
168
168
|
extend ModuleCluster::Define::ModuleOrClassCluster::Mock05
|
@@ -200,7 +200,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
200
200
|
end
|
201
201
|
module Module2
|
202
202
|
end
|
203
|
-
module_or_class_extend_also_includes_and_extends( Module1, Module2 )
|
203
|
+
module_or_class_extend_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
204
204
|
respond_to?( :extended ).should == true
|
205
205
|
module ModuleProof
|
206
206
|
extend ModuleCluster::Define::ModuleOrClassCluster::Mock06
|
@@ -238,7 +238,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
238
238
|
end
|
239
239
|
module Module2
|
240
240
|
end
|
241
|
-
module_or_class_include_prepends_includes( Module1, Module2 )
|
241
|
+
module_or_class_include_prepends_includes( Module1, Module2 ).name = :some_name
|
242
242
|
respond_to?( :append_features ).should == true
|
243
243
|
module ModuleProof
|
244
244
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock07
|
@@ -270,7 +270,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
270
270
|
end
|
271
271
|
module Module2
|
272
272
|
end
|
273
|
-
module_or_class_include_prepends_extends( Module1, Module2 )
|
273
|
+
module_or_class_include_prepends_extends( Module1, Module2 ).name = :some_name
|
274
274
|
respond_to?( :append_features ).should == true
|
275
275
|
module ModuleProof
|
276
276
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock08
|
@@ -302,7 +302,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
302
302
|
end
|
303
303
|
module Module2
|
304
304
|
end
|
305
|
-
module_or_class_include_prepends_includes_and_extends( Module1, Module2 )
|
305
|
+
module_or_class_include_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
306
306
|
respond_to?( :append_features ).should == true
|
307
307
|
module ModuleProof
|
308
308
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock09
|
@@ -334,7 +334,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
334
334
|
end
|
335
335
|
module Module2
|
336
336
|
end
|
337
|
-
module_or_class_extend_prepends_includes( Module1, Module2 )
|
337
|
+
module_or_class_extend_prepends_includes( Module1, Module2 ).name = :some_name
|
338
338
|
respond_to?( :extend_object ).should == true
|
339
339
|
module ModuleProof
|
340
340
|
extend ModuleCluster::Define::ModuleOrClassCluster::Mock10
|
@@ -366,7 +366,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
366
366
|
end
|
367
367
|
module Module2
|
368
368
|
end
|
369
|
-
module_or_class_extend_prepends_extends( Module1, Module2 )
|
369
|
+
module_or_class_extend_prepends_extends( Module1, Module2 ).name = :some_name
|
370
370
|
respond_to?( :extend_object ).should == true
|
371
371
|
module ModuleProof
|
372
372
|
extend ModuleCluster::Define::ModuleOrClassCluster::Mock11
|
@@ -404,7 +404,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
404
404
|
end
|
405
405
|
module Module2
|
406
406
|
end
|
407
|
-
module_or_class_extend_prepends_includes_and_extends( Module1, Module2 )
|
407
|
+
module_or_class_extend_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
408
408
|
respond_to?( :extend_object ).should == true
|
409
409
|
module ModuleProof
|
410
410
|
extend ModuleCluster::Define::ModuleOrClassCluster::Mock12
|
@@ -442,7 +442,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
442
442
|
end
|
443
443
|
module Module2
|
444
444
|
end
|
445
|
-
module_or_class_include_or_extend_also_includes( Module1, Module2 )
|
445
|
+
module_or_class_include_or_extend_also_includes( Module1, Module2 ).name = :some_name
|
446
446
|
respond_to?( :append_features ).should == true
|
447
447
|
module ModuleProof
|
448
448
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock13
|
@@ -490,7 +490,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
490
490
|
end
|
491
491
|
module Module2
|
492
492
|
end
|
493
|
-
module_or_class_include_or_extend_also_extends( Module1, Module2 )
|
493
|
+
module_or_class_include_or_extend_also_extends( Module1, Module2 ).name = :some_name
|
494
494
|
respond_to?( :included ).should == true
|
495
495
|
module ModuleProof
|
496
496
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock14
|
@@ -538,7 +538,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
538
538
|
end
|
539
539
|
module Module2
|
540
540
|
end
|
541
|
-
module_or_class_include_or_extend_also_includes_and_extends( Module1, Module2 )
|
541
|
+
module_or_class_include_or_extend_also_includes_and_extends( Module1, Module2 ).name = :some_name
|
542
542
|
respond_to?( :included ).should == true
|
543
543
|
module ModuleProof
|
544
544
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock15
|
@@ -586,7 +586,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
586
586
|
end
|
587
587
|
module Module2
|
588
588
|
end
|
589
|
-
module_or_class_include_or_extend_prepends_includes( Module1, Module2 )
|
589
|
+
module_or_class_include_or_extend_prepends_includes( Module1, Module2 ).name = :some_name
|
590
590
|
respond_to?( :append_features ).should == true
|
591
591
|
module ModuleProof
|
592
592
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock16
|
@@ -634,7 +634,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
634
634
|
end
|
635
635
|
module Module2
|
636
636
|
end
|
637
|
-
module_or_class_include_or_extend_prepends_extends( Module1, Module2 )
|
637
|
+
module_or_class_include_or_extend_prepends_extends( Module1, Module2 ).name = :some_name
|
638
638
|
respond_to?( :extend_object ).should == true
|
639
639
|
module ModuleProof
|
640
640
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock17
|
@@ -688,7 +688,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
688
688
|
end
|
689
689
|
module Module2
|
690
690
|
end
|
691
|
-
module_or_class_include_or_extend_prepends_includes_and_extends( Module1, Module2 )
|
691
|
+
module_or_class_include_or_extend_prepends_includes_and_extends( Module1, Module2 ).name = :some_name
|
692
692
|
respond_to?( :append_features ).should == true
|
693
693
|
module ModuleProof
|
694
694
|
include ModuleCluster::Define::ModuleOrClassCluster::Mock18
|