module-cluster 1.4.4 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +21 -0
- data/README.rdoc +21 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClass.rb +83 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClassOrModule.rb +70 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModule.rb +79 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModuleOrSubclass.rb +22 -0
- data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrSubclass.rb +11 -3
- data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrSubclass.rb +10 -2
- data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +15 -3
- data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +15 -7
- data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrSubclass.rb +10 -2
- data/lib/module-cluster/ModuleCluster/Define/Block/Subclass.rb +13 -2
- data/lib/module-cluster/ModuleCluster/Define/Block.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +34 -34
- data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/Deprecated.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +3 -3
- data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +19 -19
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +43 -43
- data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +34 -34
- data/lib/module-cluster/ModuleCluster/Define/Status.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Define.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Suspend/Hooks.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Suspend/WithoutHooks.rb +1 -1
- data/lib/module-cluster/ModuleCluster/Suspend.rb +1 -1
- data/lib/module-cluster/ModuleCluster.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/ClusterStack.rb +3 -3
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/PerformCascades.rb +85 -32
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/Subclass.rb +6 -3
- data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +5 -5
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Class.rb +9 -9
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Inherited.rb +3 -3
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Instance.rb +5 -5
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Module.rb +9 -9
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Set.rb +1 -0
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Extends.rb +13 -13
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Includes.rb +10 -10
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsExtends.rb +13 -13
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsIncludes.rb +10 -10
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Status.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Suspend.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ClusterStack.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade/Subclass.rb +1 -1
- data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +1 -1
- data/lib/module-cluster.rb +14 -2
- data/spec/ModuleCluster/Define/Block/CascadingClassOrModule_spec.rb +285 -0
- data/spec/ModuleCluster/Define/Block/CascadingClass_spec.rb +241 -0
- data/spec/ModuleCluster/Define/Block/CascadingModuleOrSubclass_spec.rb +56 -0
- data/spec/ModuleCluster/Define/Block/CascadingModule_spec.rb +278 -0
- data/spec/ModuleCluster/Define/Block/ClassOrInstance_spec.rb +13 -13
- data/spec/ModuleCluster/Define/Block/ClassOrModuleOrInstance_spec.rb +13 -13
- data/spec/ModuleCluster/Define/Block/ClassOrModuleOrSubclass_spec.rb +2 -3
- data/spec/ModuleCluster/Define/Block/ClassOrModule_spec.rb +13 -13
- data/spec/ModuleCluster/Define/Block/ClassOrSubclass_spec.rb +2 -2
- data/spec/ModuleCluster/Define/Block/Class_spec.rb +13 -13
- data/spec/ModuleCluster/Define/Block/Instance_spec.rb +5 -5
- data/spec/ModuleCluster/Define/Block/ModuleOrInstance_spec.rb +1 -1
- data/spec/ModuleCluster/Define/Block/ModuleOrSubclass_spec.rb +2 -4
- data/spec/ModuleCluster/Define/Block/Module_spec.rb +13 -13
- data/spec/ModuleCluster/Define/Block/Subclass_spec.rb +8 -8
- data/spec/ModuleCluster/Define/Block_spec.rb +9 -9
- data/spec/ModuleCluster/Define/ClassCluster_spec.rb +227 -227
- data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +197 -197
- data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +228 -228
- data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +232 -232
- data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +224 -224
- data/spec/ModuleCluster/Define/Cluster_spec.rb +221 -221
- data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +29 -29
- data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +227 -227
- data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +227 -227
- data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +197 -197
- data/spec/ModuleCluster/Suspend/Hooks_spec.rb +120 -120
- data/spec/ModuleCluster/Suspend/WithoutHooks_spec.rb +120 -120
- data/spec/ModuleCluster_spec.rb +2 -2
- data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +192 -192
- data/spec/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy_spec.rb +129 -129
- data/spec/_private_/ModuleCluster/ClusterStack/Suspend_spec.rb +17 -17
- metadata +9 -1
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
2
|
require_relative '../../../lib/module-cluster.rb'
|
3
3
|
|
4
|
-
describe ModuleCluster::Define::ClusterCascades do
|
4
|
+
describe ::ModuleCluster::Define::ClusterCascades do
|
5
5
|
|
6
6
|
##########################
|
7
7
|
# self.should_cascade? #
|
8
8
|
##########################
|
9
9
|
|
10
10
|
it 'should cascade to any object' do
|
11
|
-
ModuleCluster::Define::ClusterCascades.should_cascade?( Kernel ).should == true
|
12
|
-
ModuleCluster::Define::ClusterCascades.should_cascade?( Class ).should == true
|
13
|
-
ModuleCluster::Define::ClusterCascades.should_cascade?( Object.new ).should == true
|
11
|
+
::ModuleCluster::Define::ClusterCascades.should_cascade?( Kernel ).should == true
|
12
|
+
::ModuleCluster::Define::ClusterCascades.should_cascade?( Class ).should == true
|
13
|
+
::ModuleCluster::Define::ClusterCascades.should_cascade?( Object.new ).should == true
|
14
14
|
end
|
15
15
|
|
16
16
|
###############################
|
@@ -18,7 +18,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
18
18
|
###############################
|
19
19
|
|
20
20
|
it 'include modules for any class or module this module is included in' do
|
21
|
-
module ModuleCluster::Define::ClusterCascades::Mock01
|
21
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock01
|
22
22
|
extend ::ModuleCluster::Define::ClusterCascades
|
23
23
|
module Module1
|
24
24
|
end
|
@@ -28,35 +28,35 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
28
28
|
respond_to?( :included ).should == true
|
29
29
|
module ModuleProof1
|
30
30
|
include ::ModuleCluster::Define::ClusterCascades::Mock01
|
31
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
|
32
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
|
31
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
|
32
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
|
33
33
|
eigenclass = class << self ; self ; end
|
34
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
|
35
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
|
34
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
|
35
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
|
36
36
|
end
|
37
37
|
class ClassProof
|
38
38
|
include ::ModuleCluster::Define::ClusterCascades::Mock01
|
39
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
|
40
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
|
39
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
|
40
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
|
41
41
|
eigenclass = class << self ; self ; end
|
42
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
|
43
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
|
42
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
|
43
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
|
44
44
|
end
|
45
45
|
module ModuleProof2
|
46
46
|
include ::ModuleCluster::Define::ClusterCascades::Mock01::ModuleProof1
|
47
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
|
48
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
|
47
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
|
48
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
|
49
49
|
eigenclass = class << self ; self ; end
|
50
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
|
51
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
|
50
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
|
51
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
|
52
52
|
end
|
53
53
|
class ClassProof2
|
54
54
|
include ::ModuleCluster::Define::ClusterCascades::Mock01::ModuleProof1
|
55
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
|
56
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
|
55
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == true
|
56
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == true
|
57
57
|
eigenclass = class << self ; self ; end
|
58
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
|
59
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
|
58
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module1 ).should == false
|
59
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock01::Module2 ).should == false
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
@@ -66,7 +66,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
66
66
|
##############################
|
67
67
|
|
68
68
|
it 'extends modules for any class or module this module is included in' do
|
69
|
-
module ModuleCluster::Define::ClusterCascades::Mock02
|
69
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock02
|
70
70
|
extend ::ModuleCluster::Define::ClusterCascades
|
71
71
|
module Module1
|
72
72
|
end
|
@@ -76,35 +76,35 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
76
76
|
respond_to?( :included ).should == true
|
77
77
|
module ModuleProof1
|
78
78
|
include ::ModuleCluster::Define::ClusterCascades::Mock02
|
79
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
|
80
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
|
79
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
|
80
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
|
81
81
|
eigenclass = class << self ; self ; end
|
82
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
|
83
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
|
82
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
|
83
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
|
84
84
|
end
|
85
85
|
class ClassProof
|
86
86
|
include ::ModuleCluster::Define::ClusterCascades::Mock02
|
87
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
|
88
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
|
87
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
|
88
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
|
89
89
|
eigenclass = class << self ; self ; end
|
90
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
|
91
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
|
90
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
|
91
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
|
92
92
|
end
|
93
93
|
module ModuleProof2
|
94
94
|
include ::ModuleCluster::Define::ClusterCascades::Mock02::ModuleProof1
|
95
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
|
96
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
|
95
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
|
96
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
|
97
97
|
eigenclass = class << self ; self ; end
|
98
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
|
99
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
|
98
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
|
99
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
|
100
100
|
end
|
101
101
|
class ClassProof2
|
102
102
|
include ::ModuleCluster::Define::ClusterCascades::Mock02::ModuleProof1
|
103
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
|
104
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
|
103
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == false
|
104
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == false
|
105
105
|
eigenclass = class << self ; self ; end
|
106
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
|
107
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
|
106
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module1 ).should == true
|
107
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock02::Module2 ).should == true
|
108
108
|
end
|
109
109
|
end
|
110
110
|
end
|
@@ -114,7 +114,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
114
114
|
###########################################
|
115
115
|
|
116
116
|
it 'include and extends modules for any class or module this module is included in' do
|
117
|
-
module ModuleCluster::Define::ClusterCascades::Mock03
|
117
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock03
|
118
118
|
extend ::ModuleCluster::Define::ClusterCascades
|
119
119
|
module Module1
|
120
120
|
end
|
@@ -124,35 +124,35 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
124
124
|
respond_to?( :included ).should == true
|
125
125
|
module ModuleProof1
|
126
126
|
include ::ModuleCluster::Define::ClusterCascades::Mock03
|
127
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
128
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
127
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
128
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
129
129
|
eigenclass = class << self ; self ; end
|
130
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
131
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
130
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
131
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
132
132
|
end
|
133
133
|
class ClassProof
|
134
134
|
include ::ModuleCluster::Define::ClusterCascades::Mock03
|
135
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
136
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
135
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
136
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
137
137
|
eigenclass = class << self ; self ; end
|
138
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
139
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
138
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
139
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
140
140
|
end
|
141
141
|
module ModuleProof2
|
142
142
|
include ::ModuleCluster::Define::ClusterCascades::Mock03::ModuleProof1
|
143
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
144
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
143
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
144
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
145
145
|
eigenclass = class << self ; self ; end
|
146
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
147
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
146
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
147
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
148
148
|
end
|
149
149
|
class ClassProof2
|
150
150
|
include ::ModuleCluster::Define::ClusterCascades::Mock03::ModuleProof1
|
151
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
152
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
151
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
152
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
153
153
|
eigenclass = class << self ; self ; end
|
154
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
155
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
154
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module1 ).should == true
|
155
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock03::Module2 ).should == true
|
156
156
|
end
|
157
157
|
end
|
158
158
|
end
|
@@ -162,7 +162,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
162
162
|
##############################
|
163
163
|
|
164
164
|
it 'include modules for any class or module this module is extended in' do
|
165
|
-
module ModuleCluster::Define::ClusterCascades::Mock04
|
165
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock04
|
166
166
|
extend ::ModuleCluster::Define::ClusterCascades
|
167
167
|
module Module1
|
168
168
|
end
|
@@ -172,37 +172,37 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
172
172
|
respond_to?( :extended ).should == true
|
173
173
|
module ModuleProof1
|
174
174
|
extend ::ModuleCluster::Define::ClusterCascades::Mock04
|
175
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
176
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
175
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
176
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
177
177
|
eigenclass = class << self ; self ; end
|
178
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == false
|
179
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == false
|
178
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == false
|
179
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == false
|
180
180
|
end
|
181
181
|
class ClassProof
|
182
182
|
extend ::ModuleCluster::Define::ClusterCascades::Mock04
|
183
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
184
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
183
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
184
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
185
185
|
eigenclass = class << self ; self ; end
|
186
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == false
|
187
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == false
|
186
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == false
|
187
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == false
|
188
188
|
end
|
189
189
|
module ModuleProof2
|
190
190
|
extend ::ModuleCluster::Define::ClusterCascades::Mock04::ModuleProof1
|
191
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
192
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
191
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
192
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
193
193
|
eigenclass = class << self ; self ; end
|
194
194
|
# true by ancestors
|
195
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
196
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
195
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
196
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
197
197
|
end
|
198
198
|
class ClassProof2
|
199
199
|
extend ::ModuleCluster::Define::ClusterCascades::Mock04::ModuleProof1
|
200
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
201
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
200
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
201
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
202
202
|
eigenclass = class << self ; self ; end
|
203
203
|
# true by ancestors
|
204
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
205
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
204
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module1 ).should == true
|
205
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock04::Module2 ).should == true
|
206
206
|
end
|
207
207
|
end
|
208
208
|
end
|
@@ -212,7 +212,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
212
212
|
#############################
|
213
213
|
|
214
214
|
it 'extend modules for any class or module this module is extended in' do
|
215
|
-
module ModuleCluster::Define::ClusterCascades::Mock05
|
215
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock05
|
216
216
|
extend ::ModuleCluster::Define::ClusterCascades
|
217
217
|
module Module1
|
218
218
|
end
|
@@ -222,47 +222,47 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
222
222
|
respond_to?( :extended ).should == true
|
223
223
|
module ModuleProof1
|
224
224
|
extend ::ModuleCluster::Define::ClusterCascades::Mock05
|
225
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
|
226
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
|
225
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
|
226
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
|
227
227
|
eigenclass = class << self ; self ; end
|
228
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
229
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
228
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
229
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
230
230
|
end
|
231
231
|
class ClassProof
|
232
232
|
extend ::ModuleCluster::Define::ClusterCascades::Mock05
|
233
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
|
234
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
|
233
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
|
234
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
|
235
235
|
eigenclass = class << self ; self ; end
|
236
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
237
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
236
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
237
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
238
238
|
end
|
239
239
|
Object.new.instance_eval do
|
240
240
|
extend ::ModuleCluster::Define::ClusterCascades::Mock05
|
241
241
|
eigenclass = class << self ; self ; end
|
242
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
243
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
242
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
243
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
244
244
|
end
|
245
245
|
module ModuleProof2
|
246
246
|
extend ::ModuleCluster::Define::ClusterCascades::Mock05::ModuleProof1
|
247
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
|
248
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
|
247
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
|
248
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
|
249
249
|
eigenclass = class << self ; self ; end
|
250
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
251
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
250
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
251
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
252
252
|
end
|
253
253
|
class ClassProof2
|
254
254
|
extend ::ModuleCluster::Define::ClusterCascades::Mock05::ModuleProof1
|
255
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
|
256
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
|
255
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == false
|
256
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == false
|
257
257
|
eigenclass = class << self ; self ; end
|
258
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
259
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
258
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
259
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
260
260
|
end
|
261
261
|
Object.new.instance_eval do
|
262
262
|
extend ::ModuleCluster::Define::ClusterCascades::Mock05::ModuleProof1
|
263
263
|
eigenclass = class << self ; self ; end
|
264
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
265
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
264
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module1 ).should == true
|
265
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock05::Module2 ).should == true
|
266
266
|
end
|
267
267
|
end
|
268
268
|
end
|
@@ -272,7 +272,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
272
272
|
##########################################
|
273
273
|
|
274
274
|
it 'include and extend modules for any class or module this module is extended in' do
|
275
|
-
module ModuleCluster::Define::ClusterCascades::Mock06
|
275
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock06
|
276
276
|
extend ::ModuleCluster::Define::ClusterCascades
|
277
277
|
module Module1
|
278
278
|
end
|
@@ -282,47 +282,47 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
282
282
|
respond_to?( :extended ).should == true
|
283
283
|
module ModuleProof1
|
284
284
|
extend ::ModuleCluster::Define::ClusterCascades::Mock06
|
285
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
286
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
285
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
286
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
287
287
|
eigenclass = class << self ; self ; end
|
288
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
289
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
288
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
289
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
290
290
|
end
|
291
291
|
class ClassProof
|
292
292
|
extend ::ModuleCluster::Define::ClusterCascades::Mock06
|
293
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
294
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
293
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
294
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
295
295
|
eigenclass = class << self ; self ; end
|
296
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
297
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
296
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
297
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
298
298
|
end
|
299
299
|
Object.new.instance_eval do
|
300
300
|
extend ::ModuleCluster::Define::ClusterCascades::Mock06
|
301
301
|
eigenclass = class << self ; self ; end
|
302
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
303
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
302
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
303
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
304
304
|
end
|
305
305
|
module ModuleProof2
|
306
306
|
extend ::ModuleCluster::Define::ClusterCascades::Mock06::ModuleProof1
|
307
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
308
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
307
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
308
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
309
309
|
eigenclass = class << self ; self ; end
|
310
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
311
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
310
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
311
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
312
312
|
end
|
313
313
|
class ClassProof2
|
314
314
|
extend ::ModuleCluster::Define::ClusterCascades::Mock06::ModuleProof1
|
315
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
316
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
315
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
316
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
317
317
|
eigenclass = class << self ; self ; end
|
318
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
319
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
318
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
319
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
320
320
|
end
|
321
321
|
Object.new.instance_eval do
|
322
322
|
extend ::ModuleCluster::Define::ClusterCascades::Mock06::ModuleProof1
|
323
323
|
eigenclass = class << self ; self ; end
|
324
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
325
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
324
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module1 ).should == true
|
325
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock06::Module2 ).should == true
|
326
326
|
end
|
327
327
|
end
|
328
328
|
end
|
@@ -332,7 +332,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
332
332
|
##########################################
|
333
333
|
|
334
334
|
it 'include other modules for any class or module this module is included in, before this module is included' do
|
335
|
-
module ModuleCluster::Define::ClusterCascades::Mock07
|
335
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock07
|
336
336
|
extend ::ModuleCluster::Define::ClusterCascades
|
337
337
|
module Module1
|
338
338
|
end
|
@@ -342,35 +342,35 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
342
342
|
respond_to?( :append_features ).should == true
|
343
343
|
module ModuleProof1
|
344
344
|
include ::ModuleCluster::Define::ClusterCascades::Mock07
|
345
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
|
346
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
|
345
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
|
346
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
|
347
347
|
eigenclass = class << self ; self ; end
|
348
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
|
349
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
|
348
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
|
349
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
|
350
350
|
end
|
351
351
|
class ClassProof
|
352
352
|
include ::ModuleCluster::Define::ClusterCascades::Mock07
|
353
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
|
354
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
|
353
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
|
354
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
|
355
355
|
eigenclass = class << self ; self ; end
|
356
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
|
357
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
|
356
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
|
357
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
|
358
358
|
end
|
359
359
|
module ModuleProof2
|
360
360
|
include ::ModuleCluster::Define::ClusterCascades::Mock07::ModuleProof1
|
361
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
|
362
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
|
361
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
|
362
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
|
363
363
|
eigenclass = class << self ; self ; end
|
364
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
|
365
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
|
364
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
|
365
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
|
366
366
|
end
|
367
367
|
class ClassProof2
|
368
368
|
include ::ModuleCluster::Define::ClusterCascades::Mock07::ModuleProof1
|
369
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
|
370
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
|
369
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == true
|
370
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == true
|
371
371
|
eigenclass = class << self ; self ; end
|
372
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
|
373
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
|
372
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module1 ).should == false
|
373
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock07::Module2 ).should == false
|
374
374
|
end
|
375
375
|
end
|
376
376
|
end
|
@@ -380,7 +380,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
380
380
|
#########################################
|
381
381
|
|
382
382
|
it 'extend other modules for any class or module this module is included in, before this module is included' do
|
383
|
-
module ModuleCluster::Define::ClusterCascades::Mock08
|
383
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock08
|
384
384
|
extend ::ModuleCluster::Define::ClusterCascades
|
385
385
|
module Module1
|
386
386
|
end
|
@@ -390,35 +390,35 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
390
390
|
respond_to?( :append_features ).should == true
|
391
391
|
module ModuleProof1
|
392
392
|
include ::ModuleCluster::Define::ClusterCascades::Mock08
|
393
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
|
394
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
|
393
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
|
394
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
|
395
395
|
eigenclass = class << self ; self ; end
|
396
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
|
397
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
|
396
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
|
397
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
|
398
398
|
end
|
399
399
|
class ClassProof
|
400
400
|
include ::ModuleCluster::Define::ClusterCascades::Mock08
|
401
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
|
402
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
|
401
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
|
402
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
|
403
403
|
eigenclass = class << self ; self ; end
|
404
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
|
405
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
|
404
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
|
405
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
|
406
406
|
end
|
407
407
|
module ModuleProof2
|
408
408
|
include ::ModuleCluster::Define::ClusterCascades::Mock08::ModuleProof1
|
409
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
|
410
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
|
409
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
|
410
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
|
411
411
|
eigenclass = class << self ; self ; end
|
412
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
|
413
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
|
412
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
|
413
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
|
414
414
|
end
|
415
415
|
class ClassProof2
|
416
416
|
include ::ModuleCluster::Define::ClusterCascades::Mock08::ModuleProof1
|
417
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
|
418
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
|
417
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == false
|
418
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == false
|
419
419
|
eigenclass = class << self ; self ; end
|
420
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
|
421
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
|
420
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module1 ).should == true
|
421
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock08::Module2 ).should == true
|
422
422
|
end
|
423
423
|
end
|
424
424
|
end
|
@@ -428,7 +428,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
428
428
|
######################################################
|
429
429
|
|
430
430
|
it 'include and extend other modules for any class or module this module is included in, before this module is included' do
|
431
|
-
module ModuleCluster::Define::ClusterCascades::Mock09
|
431
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock09
|
432
432
|
extend ::ModuleCluster::Define::ClusterCascades
|
433
433
|
module Module1
|
434
434
|
end
|
@@ -438,35 +438,35 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
438
438
|
respond_to?( :append_features ).should == true
|
439
439
|
module ModuleProof1
|
440
440
|
include ::ModuleCluster::Define::ClusterCascades::Mock09
|
441
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
442
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
441
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
442
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
443
443
|
eigenclass = class << self ; self ; end
|
444
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
445
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
444
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
445
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
446
446
|
end
|
447
447
|
class ClassProof
|
448
448
|
include ::ModuleCluster::Define::ClusterCascades::Mock09
|
449
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
450
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
449
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
450
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
451
451
|
eigenclass = class << self ; self ; end
|
452
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
453
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
452
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
453
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
454
454
|
end
|
455
455
|
module ModuleProof2
|
456
456
|
include ::ModuleCluster::Define::ClusterCascades::Mock09::ModuleProof1
|
457
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
458
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
457
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
458
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
459
459
|
eigenclass = class << self ; self ; end
|
460
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
461
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
460
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
461
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
462
462
|
end
|
463
463
|
class ClassProof2
|
464
464
|
include ::ModuleCluster::Define::ClusterCascades::Mock09::ModuleProof1
|
465
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
466
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
465
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
466
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
467
467
|
eigenclass = class << self ; self ; end
|
468
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
469
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
468
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module1 ).should == true
|
469
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock09::Module2 ).should == true
|
470
470
|
end
|
471
471
|
end
|
472
472
|
end
|
@@ -476,7 +476,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
476
476
|
#########################################
|
477
477
|
|
478
478
|
it 'include other modules for any class or module this module is included in, before this module is extended' do
|
479
|
-
module ModuleCluster::Define::ClusterCascades::Mock10
|
479
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock10
|
480
480
|
extend ::ModuleCluster::Define::ClusterCascades
|
481
481
|
module Module1
|
482
482
|
end
|
@@ -486,37 +486,37 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
486
486
|
respond_to?( :extend_object ).should == true
|
487
487
|
module ModuleProof1
|
488
488
|
extend ::ModuleCluster::Define::ClusterCascades::Mock10
|
489
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
490
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
489
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
490
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
491
491
|
eigenclass = class << self ; self ; end
|
492
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == false
|
493
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == false
|
492
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == false
|
493
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == false
|
494
494
|
end
|
495
495
|
class ClassProof
|
496
496
|
extend ::ModuleCluster::Define::ClusterCascades::Mock10
|
497
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
498
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
497
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
498
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
499
499
|
eigenclass = class << self ; self ; end
|
500
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == false
|
501
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == false
|
500
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == false
|
501
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == false
|
502
502
|
end
|
503
503
|
module ModuleProof2
|
504
504
|
extend ::ModuleCluster::Define::ClusterCascades::Mock10::ModuleProof1
|
505
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
506
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
505
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
506
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
507
507
|
eigenclass = class << self ; self ; end
|
508
508
|
# true by ancestors
|
509
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
510
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
509
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
510
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
511
511
|
end
|
512
512
|
class ClassProof2
|
513
513
|
extend ::ModuleCluster::Define::ClusterCascades::Mock10::ModuleProof1
|
514
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
515
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
514
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
515
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
516
516
|
eigenclass = class << self ; self ; end
|
517
517
|
# true by ancestors
|
518
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
519
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
518
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module1 ).should == true
|
519
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock10::Module2 ).should == true
|
520
520
|
end
|
521
521
|
end
|
522
522
|
end
|
@@ -526,7 +526,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
526
526
|
########################################
|
527
527
|
|
528
528
|
it 'extend other modules for any class or module this module is included in, before this module is extended' do
|
529
|
-
module ModuleCluster::Define::ClusterCascades::Mock11
|
529
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock11
|
530
530
|
extend ::ModuleCluster::Define::ClusterCascades
|
531
531
|
module Module1
|
532
532
|
end
|
@@ -536,47 +536,47 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
536
536
|
respond_to?( :extend_object ).should == true
|
537
537
|
module ModuleProof1
|
538
538
|
extend ::ModuleCluster::Define::ClusterCascades::Mock11
|
539
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
|
540
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
|
539
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
|
540
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
|
541
541
|
eigenclass = class << self ; self ; end
|
542
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
543
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
542
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
543
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
544
544
|
end
|
545
545
|
class ClassProof
|
546
546
|
extend ::ModuleCluster::Define::ClusterCascades::Mock11
|
547
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
|
548
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
|
547
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
|
548
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
|
549
549
|
eigenclass = class << self ; self ; end
|
550
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
551
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
550
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
551
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
552
552
|
end
|
553
553
|
Object.new.instance_eval do
|
554
554
|
extend ::ModuleCluster::Define::ClusterCascades::Mock11
|
555
555
|
eigenclass = class << self ; self ; end
|
556
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
557
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
556
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
557
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
558
558
|
end
|
559
559
|
module ModuleProof2
|
560
560
|
extend ::ModuleCluster::Define::ClusterCascades::Mock11::ModuleProof1
|
561
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
|
562
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
|
561
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
|
562
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
|
563
563
|
eigenclass = class << self ; self ; end
|
564
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
565
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
564
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
565
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
566
566
|
end
|
567
567
|
class ClassProof2
|
568
568
|
extend ::ModuleCluster::Define::ClusterCascades::Mock11::ModuleProof1
|
569
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
|
570
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
|
569
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == false
|
570
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == false
|
571
571
|
eigenclass = class << self ; self ; end
|
572
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
573
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
572
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
573
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
574
574
|
end
|
575
575
|
Object.new.instance_eval do
|
576
576
|
extend ::ModuleCluster::Define::ClusterCascades::Mock11::ModuleProof1
|
577
577
|
eigenclass = class << self ; self ; end
|
578
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
579
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
578
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module1 ).should == true
|
579
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock11::Module2 ).should == true
|
580
580
|
end
|
581
581
|
end
|
582
582
|
end
|
@@ -586,7 +586,7 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
586
586
|
#####################################################
|
587
587
|
|
588
588
|
it 'include and extend other modules for any class or module this module is included in, before this module is extended' do
|
589
|
-
module ModuleCluster::Define::ClusterCascades::Mock12
|
589
|
+
module ::ModuleCluster::Define::ClusterCascades::Mock12
|
590
590
|
extend ::ModuleCluster::Define::ClusterCascades
|
591
591
|
module Module1
|
592
592
|
end
|
@@ -596,47 +596,47 @@ describe ModuleCluster::Define::ClusterCascades do
|
|
596
596
|
respond_to?( :extend_object ).should == true
|
597
597
|
module ModuleProof1
|
598
598
|
extend ::ModuleCluster::Define::ClusterCascades::Mock12
|
599
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
600
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
599
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
600
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
601
601
|
eigenclass = class << self ; self ; end
|
602
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
603
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
602
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
603
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
604
604
|
end
|
605
605
|
class ClassProof
|
606
606
|
extend ::ModuleCluster::Define::ClusterCascades::Mock12
|
607
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
608
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
607
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
608
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
609
609
|
eigenclass = class << self ; self ; end
|
610
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
611
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
610
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
611
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
612
612
|
end
|
613
613
|
Object.new.instance_eval do
|
614
614
|
extend ::ModuleCluster::Define::ClusterCascades::Mock12
|
615
615
|
eigenclass = class << self ; self ; end
|
616
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
617
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
616
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
617
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
618
618
|
end
|
619
619
|
module ModuleProof2
|
620
620
|
extend ::ModuleCluster::Define::ClusterCascades::Mock12::ModuleProof1
|
621
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
622
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
621
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
622
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
623
623
|
eigenclass = class << self ; self ; end
|
624
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
625
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
624
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
625
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
626
626
|
end
|
627
627
|
class ClassProof
|
628
628
|
extend ::ModuleCluster::Define::ClusterCascades::Mock12::ModuleProof1
|
629
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
630
|
-
ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
629
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
630
|
+
ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
631
631
|
eigenclass = class << self ; self ; end
|
632
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
633
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
632
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
633
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
634
634
|
end
|
635
635
|
Object.new.instance_eval do
|
636
636
|
extend ::ModuleCluster::Define::ClusterCascades::Mock12::ModuleProof1
|
637
637
|
eigenclass = class << self ; self ; end
|
638
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
639
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
638
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module1 ).should == true
|
639
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascades::Mock12::Module2 ).should == true
|
640
640
|
end
|
641
641
|
end
|
642
642
|
end
|