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,14 +1,14 @@
|
|
1
1
|
|
2
2
|
require_relative '../../../lib/module-cluster.rb'
|
3
3
|
|
4
|
-
describe ModuleCluster::Define::Cluster do
|
4
|
+
describe ::ModuleCluster::Define::Cluster do
|
5
5
|
|
6
6
|
###########################
|
7
7
|
# include_also_includes #
|
8
8
|
###########################
|
9
9
|
|
10
10
|
it 'include other modules when this one is included' do
|
11
|
-
module ModuleCluster::Define::Cluster::Mock01
|
11
|
+
module ::ModuleCluster::Define::Cluster::Mock01
|
12
12
|
extend ::ModuleCluster::Define::Cluster
|
13
13
|
module Module1
|
14
14
|
end
|
@@ -18,19 +18,19 @@ describe ModuleCluster::Define::Cluster do
|
|
18
18
|
respond_to?( :included ).should == true
|
19
19
|
module ModuleProof
|
20
20
|
include ::ModuleCluster::Define::Cluster::Mock01
|
21
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module1 ).should == true
|
22
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module2 ).should == true
|
21
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module1 ).should == true
|
22
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module2 ).should == true
|
23
23
|
eigenclass = class << self ; self ; end
|
24
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module1 ).should == false
|
25
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module2 ).should == false
|
24
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module1 ).should == false
|
25
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module2 ).should == false
|
26
26
|
end
|
27
27
|
class ClassProof
|
28
28
|
include ::ModuleCluster::Define::Cluster::Mock01
|
29
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module1 ).should == true
|
30
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module2 ).should == true
|
29
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module1 ).should == true
|
30
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module2 ).should == true
|
31
31
|
eigenclass = class << self ; self ; end
|
32
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module1 ).should == false
|
33
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock01::Module2 ).should == false
|
32
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module1 ).should == false
|
33
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock01::Module2 ).should == false
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -40,7 +40,7 @@ describe ModuleCluster::Define::Cluster do
|
|
40
40
|
##########################
|
41
41
|
|
42
42
|
it 'extend other modules when this one is included' do
|
43
|
-
module ModuleCluster::Define::Cluster::Mock02
|
43
|
+
module ::ModuleCluster::Define::Cluster::Mock02
|
44
44
|
extend ::ModuleCluster::Define::Cluster
|
45
45
|
module Module1
|
46
46
|
end
|
@@ -50,19 +50,19 @@ describe ModuleCluster::Define::Cluster do
|
|
50
50
|
respond_to?( :included ).should == true
|
51
51
|
module ModuleProof
|
52
52
|
include ::ModuleCluster::Define::Cluster::Mock02
|
53
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module1 ).should == false
|
54
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module2 ).should == false
|
53
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module1 ).should == false
|
54
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module2 ).should == false
|
55
55
|
eigenclass = class << self ; self ; end
|
56
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module1 ).should == true
|
57
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module2 ).should == true
|
56
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module1 ).should == true
|
57
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module2 ).should == true
|
58
58
|
end
|
59
59
|
class ClassProof
|
60
60
|
include ::ModuleCluster::Define::Cluster::Mock02
|
61
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module1 ).should == false
|
62
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module2 ).should == false
|
61
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module1 ).should == false
|
62
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module2 ).should == false
|
63
63
|
eigenclass = class << self ; self ; end
|
64
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module1 ).should == true
|
65
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock02::Module2 ).should == true
|
64
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module1 ).should == true
|
65
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock02::Module2 ).should == true
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
@@ -72,7 +72,7 @@ describe ModuleCluster::Define::Cluster do
|
|
72
72
|
#######################################
|
73
73
|
|
74
74
|
it 'include and extend other modules when this one is included' do
|
75
|
-
module ModuleCluster::Define::Cluster::Mock03
|
75
|
+
module ::ModuleCluster::Define::Cluster::Mock03
|
76
76
|
extend ::ModuleCluster::Define::Cluster
|
77
77
|
module Module1
|
78
78
|
end
|
@@ -82,19 +82,19 @@ describe ModuleCluster::Define::Cluster do
|
|
82
82
|
respond_to?( :included ).should == true
|
83
83
|
module ModuleProof
|
84
84
|
include ::ModuleCluster::Define::Cluster::Mock03
|
85
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
|
86
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
85
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
|
86
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
87
87
|
eigenclass = class << self ; self ; end
|
88
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
|
89
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
88
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
|
89
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
90
90
|
end
|
91
91
|
class ClassProof
|
92
92
|
include ::ModuleCluster::Define::Cluster::Mock03
|
93
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
|
94
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
93
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
|
94
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
95
95
|
eigenclass = class << self ; self ; end
|
96
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
|
97
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
96
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module1 ).should == true
|
97
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock03::Module2 ).should == true
|
98
98
|
end
|
99
99
|
end
|
100
100
|
end
|
@@ -104,7 +104,7 @@ describe ModuleCluster::Define::Cluster do
|
|
104
104
|
##########################
|
105
105
|
|
106
106
|
it 'include other modules when this one is extended' do
|
107
|
-
module ModuleCluster::Define::Cluster::Mock04
|
107
|
+
module ::ModuleCluster::Define::Cluster::Mock04
|
108
108
|
extend ::ModuleCluster::Define::Cluster
|
109
109
|
module Module1
|
110
110
|
end
|
@@ -114,19 +114,19 @@ describe ModuleCluster::Define::Cluster do
|
|
114
114
|
respond_to?( :extended ).should == true
|
115
115
|
module ModuleProof
|
116
116
|
extend ::ModuleCluster::Define::Cluster::Mock04
|
117
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module1 ).should == true
|
118
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module2 ).should == true
|
117
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module1 ).should == true
|
118
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module2 ).should == true
|
119
119
|
eigenclass = class << self ; self ; end
|
120
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module1 ).should == false
|
121
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module2 ).should == false
|
120
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module1 ).should == false
|
121
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module2 ).should == false
|
122
122
|
end
|
123
123
|
class ClassProof
|
124
124
|
extend ::ModuleCluster::Define::Cluster::Mock04
|
125
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module1 ).should == true
|
126
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module2 ).should == true
|
125
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module1 ).should == true
|
126
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module2 ).should == true
|
127
127
|
eigenclass = class << self ; self ; end
|
128
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module1 ).should == false
|
129
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock04::Module2 ).should == false
|
128
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module1 ).should == false
|
129
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock04::Module2 ).should == false
|
130
130
|
end
|
131
131
|
end
|
132
132
|
end
|
@@ -136,7 +136,7 @@ describe ModuleCluster::Define::Cluster do
|
|
136
136
|
#########################
|
137
137
|
|
138
138
|
it 'extend other modules when this one is extended' do
|
139
|
-
module ModuleCluster::Define::Cluster::Mock05
|
139
|
+
module ::ModuleCluster::Define::Cluster::Mock05
|
140
140
|
extend ::ModuleCluster::Define::Cluster
|
141
141
|
module Module1
|
142
142
|
end
|
@@ -146,25 +146,25 @@ describe ModuleCluster::Define::Cluster do
|
|
146
146
|
respond_to?( :extended ).should == true
|
147
147
|
module ModuleProof
|
148
148
|
extend ::ModuleCluster::Define::Cluster::Mock05
|
149
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module1 ).should == false
|
150
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module2 ).should == false
|
149
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module1 ).should == false
|
150
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module2 ).should == false
|
151
151
|
eigenclass = class << self ; self ; end
|
152
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module1 ).should == true
|
153
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
|
152
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module1 ).should == true
|
153
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
|
154
154
|
end
|
155
155
|
class ClassProof
|
156
156
|
extend ::ModuleCluster::Define::Cluster::Mock05
|
157
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module1 ).should == false
|
158
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module2 ).should == false
|
157
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module1 ).should == false
|
158
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module2 ).should == false
|
159
159
|
eigenclass = class << self ; self ; end
|
160
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module1 ).should == true
|
161
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
|
160
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module1 ).should == true
|
161
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
|
162
162
|
end
|
163
163
|
Object.new.instance_eval do
|
164
164
|
extend ::ModuleCluster::Define::Cluster::Mock05
|
165
165
|
eigenclass = class << self ; self ; end
|
166
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module1 ).should == true
|
167
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
|
166
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module1 ).should == true
|
167
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock05::Module2 ).should == true
|
168
168
|
end
|
169
169
|
end
|
170
170
|
end
|
@@ -174,7 +174,7 @@ describe ModuleCluster::Define::Cluster do
|
|
174
174
|
######################################
|
175
175
|
|
176
176
|
it 'include and extend other modules when this one is extended' do
|
177
|
-
module ModuleCluster::Define::Cluster::Mock06
|
177
|
+
module ::ModuleCluster::Define::Cluster::Mock06
|
178
178
|
extend ::ModuleCluster::Define::Cluster
|
179
179
|
module Module1
|
180
180
|
end
|
@@ -184,25 +184,25 @@ describe ModuleCluster::Define::Cluster do
|
|
184
184
|
respond_to?( :extended ).should == true
|
185
185
|
module ModuleProof
|
186
186
|
extend ::ModuleCluster::Define::Cluster::Mock06
|
187
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
188
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
187
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
188
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
189
189
|
eigenclass = class << self ; self ; end
|
190
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
191
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
190
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
191
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
192
192
|
end
|
193
193
|
class ClassProof
|
194
194
|
extend ::ModuleCluster::Define::Cluster::Mock06
|
195
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
196
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
195
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
196
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
197
197
|
eigenclass = class << self ; self ; end
|
198
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
199
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
198
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
199
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
200
200
|
end
|
201
201
|
Object.new.instance_eval do
|
202
202
|
extend ::ModuleCluster::Define::Cluster::Mock06
|
203
203
|
eigenclass = class << self ; self ; end
|
204
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
205
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
204
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module1 ).should == true
|
205
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock06::Module2 ).should == true
|
206
206
|
end
|
207
207
|
end
|
208
208
|
end
|
@@ -212,7 +212,7 @@ describe ModuleCluster::Define::Cluster do
|
|
212
212
|
###############################
|
213
213
|
|
214
214
|
it 'include other modules before this one is included' do
|
215
|
-
module ModuleCluster::Define::Cluster::Mock07
|
215
|
+
module ::ModuleCluster::Define::Cluster::Mock07
|
216
216
|
extend ::ModuleCluster::Define::Cluster
|
217
217
|
module Module1
|
218
218
|
end
|
@@ -222,19 +222,19 @@ describe ModuleCluster::Define::Cluster do
|
|
222
222
|
respond_to?( :append_features ).should == true
|
223
223
|
module ModuleProof
|
224
224
|
include ::ModuleCluster::Define::Cluster::Mock07
|
225
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module1 ).should == true
|
226
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module2 ).should == true
|
225
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module1 ).should == true
|
226
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module2 ).should == true
|
227
227
|
eigenclass = class << self ; self ; end
|
228
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module1 ).should == false
|
229
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module2 ).should == false
|
228
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module1 ).should == false
|
229
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module2 ).should == false
|
230
230
|
end
|
231
231
|
class ClassProof
|
232
232
|
include ::ModuleCluster::Define::Cluster::Mock07
|
233
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module1 ).should == true
|
234
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module2 ).should == true
|
233
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module1 ).should == true
|
234
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module2 ).should == true
|
235
235
|
eigenclass = class << self ; self ; end
|
236
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module1 ).should == false
|
237
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock07::Module2 ).should == false
|
236
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module1 ).should == false
|
237
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock07::Module2 ).should == false
|
238
238
|
end
|
239
239
|
end
|
240
240
|
end
|
@@ -244,7 +244,7 @@ describe ModuleCluster::Define::Cluster do
|
|
244
244
|
##############################
|
245
245
|
|
246
246
|
it 'extend other modules before this one is included' do
|
247
|
-
module ModuleCluster::Define::Cluster::Mock08
|
247
|
+
module ::ModuleCluster::Define::Cluster::Mock08
|
248
248
|
extend ::ModuleCluster::Define::Cluster
|
249
249
|
module Module1
|
250
250
|
end
|
@@ -254,19 +254,19 @@ describe ModuleCluster::Define::Cluster do
|
|
254
254
|
respond_to?( :append_features ).should == true
|
255
255
|
module ModuleProof
|
256
256
|
include ::ModuleCluster::Define::Cluster::Mock08
|
257
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module1 ).should == false
|
258
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module2 ).should == false
|
257
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module1 ).should == false
|
258
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module2 ).should == false
|
259
259
|
eigenclass = class << self ; self ; end
|
260
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module1 ).should == true
|
261
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module2 ).should == true
|
260
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module1 ).should == true
|
261
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module2 ).should == true
|
262
262
|
end
|
263
263
|
class ClassProof
|
264
264
|
include ::ModuleCluster::Define::Cluster::Mock08
|
265
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module1 ).should == false
|
266
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module2 ).should == false
|
265
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module1 ).should == false
|
266
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module2 ).should == false
|
267
267
|
eigenclass = class << self ; self ; end
|
268
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module1 ).should == true
|
269
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock08::Module2 ).should == true
|
268
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module1 ).should == true
|
269
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock08::Module2 ).should == true
|
270
270
|
end
|
271
271
|
end
|
272
272
|
end
|
@@ -276,7 +276,7 @@ describe ModuleCluster::Define::Cluster do
|
|
276
276
|
###########################################
|
277
277
|
|
278
278
|
it 'include and extend other modules before this one is included' do
|
279
|
-
module ModuleCluster::Define::Cluster::Mock09
|
279
|
+
module ::ModuleCluster::Define::Cluster::Mock09
|
280
280
|
extend ::ModuleCluster::Define::Cluster
|
281
281
|
module Module1
|
282
282
|
end
|
@@ -286,19 +286,19 @@ describe ModuleCluster::Define::Cluster do
|
|
286
286
|
respond_to?( :append_features ).should == true
|
287
287
|
module ModuleProof
|
288
288
|
include ::ModuleCluster::Define::Cluster::Mock09
|
289
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
|
290
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
289
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
|
290
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
291
291
|
eigenclass = class << self ; self ; end
|
292
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
|
293
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
292
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
|
293
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
294
294
|
end
|
295
295
|
class ClassProof
|
296
296
|
include ::ModuleCluster::Define::Cluster::Mock09
|
297
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
|
298
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
297
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
|
298
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
299
299
|
eigenclass = class << self ; self ; end
|
300
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
|
301
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
300
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module1 ).should == true
|
301
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock09::Module2 ).should == true
|
302
302
|
end
|
303
303
|
end
|
304
304
|
end
|
@@ -308,7 +308,7 @@ describe ModuleCluster::Define::Cluster do
|
|
308
308
|
##############################
|
309
309
|
|
310
310
|
it 'include other modules before this one is extended' do
|
311
|
-
module ModuleCluster::Define::Cluster::Mock10
|
311
|
+
module ::ModuleCluster::Define::Cluster::Mock10
|
312
312
|
extend ::ModuleCluster::Define::Cluster
|
313
313
|
module Module1
|
314
314
|
end
|
@@ -318,19 +318,19 @@ describe ModuleCluster::Define::Cluster do
|
|
318
318
|
respond_to?( :extend_object ).should == true
|
319
319
|
module ModuleProof
|
320
320
|
extend ::ModuleCluster::Define::Cluster::Mock10
|
321
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module1 ).should == true
|
322
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module2 ).should == true
|
321
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module1 ).should == true
|
322
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module2 ).should == true
|
323
323
|
eigenclass = class << self ; self ; end
|
324
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module1 ).should == false
|
325
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module2 ).should == false
|
324
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module1 ).should == false
|
325
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module2 ).should == false
|
326
326
|
end
|
327
327
|
class ClassProof
|
328
328
|
extend ::ModuleCluster::Define::Cluster::Mock10
|
329
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module1 ).should == true
|
330
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module2 ).should == true
|
329
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module1 ).should == true
|
330
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module2 ).should == true
|
331
331
|
eigenclass = class << self ; self ; end
|
332
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module1 ).should == false
|
333
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock10::Module2 ).should == false
|
332
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module1 ).should == false
|
333
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock10::Module2 ).should == false
|
334
334
|
end
|
335
335
|
end
|
336
336
|
end
|
@@ -340,7 +340,7 @@ describe ModuleCluster::Define::Cluster do
|
|
340
340
|
#############################
|
341
341
|
|
342
342
|
it 'extend other modules before this one is extended' do
|
343
|
-
module ModuleCluster::Define::Cluster::Mock11
|
343
|
+
module ::ModuleCluster::Define::Cluster::Mock11
|
344
344
|
extend ::ModuleCluster::Define::Cluster
|
345
345
|
module Module1
|
346
346
|
end
|
@@ -350,25 +350,25 @@ describe ModuleCluster::Define::Cluster do
|
|
350
350
|
respond_to?( :extend_object ).should == true
|
351
351
|
module ModuleProof
|
352
352
|
extend ::ModuleCluster::Define::Cluster::Mock11
|
353
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module1 ).should == false
|
354
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module2 ).should == false
|
353
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module1 ).should == false
|
354
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module2 ).should == false
|
355
355
|
eigenclass = class << self ; self ; end
|
356
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module1 ).should == true
|
357
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
|
356
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module1 ).should == true
|
357
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
|
358
358
|
end
|
359
359
|
class ClassProof
|
360
360
|
extend ::ModuleCluster::Define::Cluster::Mock11
|
361
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module1 ).should == false
|
362
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module2 ).should == false
|
361
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module1 ).should == false
|
362
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module2 ).should == false
|
363
363
|
eigenclass = class << self ; self ; end
|
364
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module1 ).should == true
|
365
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
|
364
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module1 ).should == true
|
365
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
|
366
366
|
end
|
367
367
|
Object.new.instance_eval do
|
368
368
|
extend ::ModuleCluster::Define::Cluster::Mock11
|
369
369
|
eigenclass = class << self ; self ; end
|
370
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module1 ).should == true
|
371
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
|
370
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module1 ).should == true
|
371
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock11::Module2 ).should == true
|
372
372
|
end
|
373
373
|
end
|
374
374
|
end
|
@@ -378,7 +378,7 @@ describe ModuleCluster::Define::Cluster do
|
|
378
378
|
##########################################
|
379
379
|
|
380
380
|
it 'include and extend other modules before this one is extended' do
|
381
|
-
module ModuleCluster::Define::Cluster::Mock12
|
381
|
+
module ::ModuleCluster::Define::Cluster::Mock12
|
382
382
|
extend ::ModuleCluster::Define::Cluster
|
383
383
|
module Module1
|
384
384
|
end
|
@@ -388,25 +388,25 @@ describe ModuleCluster::Define::Cluster do
|
|
388
388
|
respond_to?( :extend_object ).should == true
|
389
389
|
module ModuleProof
|
390
390
|
extend ::ModuleCluster::Define::Cluster::Mock12
|
391
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
392
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
391
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
392
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
393
393
|
eigenclass = class << self ; self ; end
|
394
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
395
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
394
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
395
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
396
396
|
end
|
397
397
|
class ClassProof
|
398
398
|
extend ::ModuleCluster::Define::Cluster::Mock12
|
399
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
400
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
399
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
400
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
401
401
|
eigenclass = class << self ; self ; end
|
402
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
403
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
402
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
403
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
404
404
|
end
|
405
405
|
Object.new.instance_eval do
|
406
406
|
extend ::ModuleCluster::Define::Cluster::Mock12
|
407
407
|
eigenclass = class << self ; self ; end
|
408
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
409
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
408
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module1 ).should == true
|
409
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock12::Module2 ).should == true
|
410
410
|
end
|
411
411
|
end
|
412
412
|
end
|
@@ -416,7 +416,7 @@ describe ModuleCluster::Define::Cluster do
|
|
416
416
|
#####################################
|
417
417
|
|
418
418
|
it 'can include other modules when this one is included in or extends a class' do
|
419
|
-
module ModuleCluster::Define::Cluster::Mock13
|
419
|
+
module ::ModuleCluster::Define::Cluster::Mock13
|
420
420
|
extend ::ModuleCluster::Define::Cluster
|
421
421
|
module Module1
|
422
422
|
end
|
@@ -426,35 +426,35 @@ describe ModuleCluster::Define::Cluster do
|
|
426
426
|
respond_to?( :append_features ).should == true
|
427
427
|
module ModuleProof
|
428
428
|
include ::ModuleCluster::Define::Cluster::Mock13
|
429
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
430
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
429
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
430
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
431
431
|
eigenclass = class << self ; self ; end
|
432
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
|
433
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
432
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
|
433
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
434
434
|
end
|
435
435
|
module ModuleProof2
|
436
436
|
extend ::ModuleCluster::Define::Cluster::Mock13
|
437
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
438
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
437
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
438
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
439
439
|
eigenclass = class << self ; self ; end
|
440
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
|
441
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
440
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
|
441
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
442
442
|
end
|
443
443
|
class ClassProof
|
444
444
|
include ::ModuleCluster::Define::Cluster::Mock13
|
445
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
446
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
445
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
446
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
447
447
|
eigenclass = class << self ; self ; end
|
448
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
|
449
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
448
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
|
449
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
450
450
|
end
|
451
451
|
class ClassProof2
|
452
452
|
include ::ModuleCluster::Define::Cluster::Mock13
|
453
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
454
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
453
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == true
|
454
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == true
|
455
455
|
eigenclass = class << self ; self ; end
|
456
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
|
457
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
456
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module1 ).should == false
|
457
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock13::Module2 ).should == false
|
458
458
|
end
|
459
459
|
end
|
460
460
|
end
|
@@ -464,7 +464,7 @@ describe ModuleCluster::Define::Cluster do
|
|
464
464
|
####################################
|
465
465
|
|
466
466
|
it 'can extend other modules when this one is included in or extends a class' do
|
467
|
-
module ModuleCluster::Define::Cluster::Mock14
|
467
|
+
module ::ModuleCluster::Define::Cluster::Mock14
|
468
468
|
extend ::ModuleCluster::Define::Cluster
|
469
469
|
module Module1
|
470
470
|
end
|
@@ -474,35 +474,35 @@ describe ModuleCluster::Define::Cluster do
|
|
474
474
|
respond_to?( :included ).should == true
|
475
475
|
module ModuleProof
|
476
476
|
include ::ModuleCluster::Define::Cluster::Mock14
|
477
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
478
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
477
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
478
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
479
479
|
eigenclass = class << self ; self ; end
|
480
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
|
481
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
480
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
|
481
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
482
482
|
end
|
483
483
|
module ModuleProof2
|
484
484
|
extend ::ModuleCluster::Define::Cluster::Mock14
|
485
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
486
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
485
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
486
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
487
487
|
eigenclass = class << self ; self ; end
|
488
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
|
489
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
488
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
|
489
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
490
490
|
end
|
491
491
|
class ClassProof
|
492
492
|
include ::ModuleCluster::Define::Cluster::Mock14
|
493
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
494
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
493
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
494
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
495
495
|
eigenclass = class << self ; self ; end
|
496
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
|
497
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
496
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
|
497
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
498
498
|
end
|
499
499
|
class ClassProof2
|
500
500
|
extend ::ModuleCluster::Define::Cluster::Mock14
|
501
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
502
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
501
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == false
|
502
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == false
|
503
503
|
eigenclass = class << self ; self ; end
|
504
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
|
505
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
504
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module1 ).should == true
|
505
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock14::Module2 ).should == true
|
506
506
|
end
|
507
507
|
end
|
508
508
|
end
|
@@ -512,7 +512,7 @@ describe ModuleCluster::Define::Cluster do
|
|
512
512
|
#################################################
|
513
513
|
|
514
514
|
it 'can include and extend other modules when this one is included in or extends a class' do
|
515
|
-
module ModuleCluster::Define::Cluster::Mock15
|
515
|
+
module ::ModuleCluster::Define::Cluster::Mock15
|
516
516
|
extend ::ModuleCluster::Define::Cluster
|
517
517
|
module Module1
|
518
518
|
end
|
@@ -522,35 +522,35 @@ describe ModuleCluster::Define::Cluster do
|
|
522
522
|
respond_to?( :included ).should == true
|
523
523
|
module ModuleProof
|
524
524
|
include ::ModuleCluster::Define::Cluster::Mock15
|
525
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
526
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
525
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
526
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
527
527
|
eigenclass = class << self ; self ; end
|
528
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
529
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
528
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
529
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
530
530
|
end
|
531
531
|
module ModuleProo2
|
532
532
|
extend ::ModuleCluster::Define::Cluster::Mock15
|
533
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
534
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
533
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
534
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
535
535
|
eigenclass = class << self ; self ; end
|
536
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
537
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
536
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
537
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
538
538
|
end
|
539
539
|
class ClassProof
|
540
540
|
include ::ModuleCluster::Define::Cluster::Mock15
|
541
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
542
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
541
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
542
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
543
543
|
eigenclass = class << self ; self ; end
|
544
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
545
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
544
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
545
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
546
546
|
end
|
547
547
|
class ClassProof2
|
548
548
|
extend ::ModuleCluster::Define::Cluster::Mock15
|
549
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
550
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
549
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
550
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
551
551
|
eigenclass = class << self ; self ; end
|
552
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
553
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
552
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module1 ).should == true
|
553
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock15::Module2 ).should == true
|
554
554
|
end
|
555
555
|
end
|
556
556
|
end
|
@@ -560,7 +560,7 @@ describe ModuleCluster::Define::Cluster do
|
|
560
560
|
#########################################
|
561
561
|
|
562
562
|
it 'can include other modules before this one when this one is included in or extends a class' do
|
563
|
-
module ModuleCluster::Define::Cluster::Mock16
|
563
|
+
module ::ModuleCluster::Define::Cluster::Mock16
|
564
564
|
extend ::ModuleCluster::Define::Cluster
|
565
565
|
module Module1
|
566
566
|
end
|
@@ -570,35 +570,35 @@ describe ModuleCluster::Define::Cluster do
|
|
570
570
|
respond_to?( :append_features ).should == true
|
571
571
|
module ModuleProof
|
572
572
|
include ::ModuleCluster::Define::Cluster::Mock16
|
573
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
574
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
573
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
574
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
575
575
|
eigenclass = class << self ; self ; end
|
576
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
|
577
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
576
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
|
577
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
578
578
|
end
|
579
579
|
module ModuleProof2
|
580
580
|
extend ::ModuleCluster::Define::Cluster::Mock16
|
581
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
582
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
581
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
582
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
583
583
|
eigenclass = class << self ; self ; end
|
584
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
|
585
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
584
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
|
585
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
586
586
|
end
|
587
587
|
class ClassProof
|
588
588
|
include ::ModuleCluster::Define::Cluster::Mock16
|
589
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
590
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
589
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
590
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
591
591
|
eigenclass = class << self ; self ; end
|
592
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
|
593
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
592
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
|
593
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
594
594
|
end
|
595
595
|
class ClassProof2
|
596
596
|
extend ::ModuleCluster::Define::Cluster::Mock16
|
597
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
598
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
597
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == true
|
598
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == true
|
599
599
|
eigenclass = class << self ; self ; end
|
600
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
|
601
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
600
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module1 ).should == false
|
601
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock16::Module2 ).should == false
|
602
602
|
end
|
603
603
|
end
|
604
604
|
end
|
@@ -608,7 +608,7 @@ describe ModuleCluster::Define::Cluster do
|
|
608
608
|
########################################
|
609
609
|
|
610
610
|
it 'can extend other modules before this one when this one is included in or extends a class' do
|
611
|
-
module ModuleCluster::Define::Cluster::Mock17
|
611
|
+
module ::ModuleCluster::Define::Cluster::Mock17
|
612
612
|
extend ::ModuleCluster::Define::Cluster
|
613
613
|
module Module1
|
614
614
|
end
|
@@ -618,41 +618,41 @@ describe ModuleCluster::Define::Cluster do
|
|
618
618
|
respond_to?( :extend_object ).should == true
|
619
619
|
module ModuleProof
|
620
620
|
include ::ModuleCluster::Define::Cluster::Mock17
|
621
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
622
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
621
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
622
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
623
623
|
eigenclass = class << self ; self ; end
|
624
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
625
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
624
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
625
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
626
626
|
end
|
627
627
|
module ModuleProof2
|
628
628
|
extend ::ModuleCluster::Define::Cluster::Mock17
|
629
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
630
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
629
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
630
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
631
631
|
eigenclass = class << self ; self ; end
|
632
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
633
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
632
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
633
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
634
634
|
end
|
635
635
|
class ClassProof
|
636
636
|
include ::ModuleCluster::Define::Cluster::Mock17
|
637
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
638
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
637
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
638
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
639
639
|
eigenclass = class << self ; self ; end
|
640
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
641
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
640
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
641
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
642
642
|
end
|
643
643
|
class ClassProof2
|
644
644
|
extend ::ModuleCluster::Define::Cluster::Mock17
|
645
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
646
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
645
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == false
|
646
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == false
|
647
647
|
eigenclass = class << self ; self ; end
|
648
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
649
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
648
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
649
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
650
650
|
end
|
651
651
|
Object.new.instance_eval do
|
652
652
|
extend ::ModuleCluster::Define::Cluster::Mock17
|
653
653
|
eigenclass = class << self ; self ; end
|
654
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
655
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
654
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module1 ).should == true
|
655
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock17::Module2 ).should == true
|
656
656
|
end
|
657
657
|
end
|
658
658
|
end
|
@@ -662,7 +662,7 @@ describe ModuleCluster::Define::Cluster do
|
|
662
662
|
#####################################################
|
663
663
|
|
664
664
|
it 'can include and extend other modules before this one when this one is included in or extends a class' do
|
665
|
-
module ModuleCluster::Define::Cluster::Mock18
|
665
|
+
module ::ModuleCluster::Define::Cluster::Mock18
|
666
666
|
extend ::ModuleCluster::Define::Cluster
|
667
667
|
module Module1
|
668
668
|
end
|
@@ -672,35 +672,35 @@ describe ModuleCluster::Define::Cluster do
|
|
672
672
|
respond_to?( :append_features ).should == true
|
673
673
|
module ModuleProof
|
674
674
|
include ::ModuleCluster::Define::Cluster::Mock18
|
675
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
676
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
675
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
676
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
677
677
|
eigenclass = class << self ; self ; end
|
678
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
679
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
678
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
679
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
680
680
|
end
|
681
681
|
module ModuleProof2
|
682
682
|
extend ::ModuleCluster::Define::Cluster::Mock18
|
683
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
684
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
683
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
684
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
685
685
|
eigenclass = class << self ; self ; end
|
686
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
687
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
686
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
687
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
688
688
|
end
|
689
689
|
class ClassProof
|
690
690
|
include ::ModuleCluster::Define::Cluster::Mock18
|
691
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
692
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
691
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
692
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
693
693
|
eigenclass = class << self ; self ; end
|
694
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
695
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
694
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
695
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
696
696
|
end
|
697
697
|
class ClassProof2
|
698
698
|
extend ::ModuleCluster::Define::Cluster::Mock18
|
699
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
700
|
-
ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
699
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
700
|
+
ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
701
701
|
eigenclass = class << self ; self ; end
|
702
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
703
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
702
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module1 ).should == true
|
703
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::Cluster::Mock18::Module2 ).should == true
|
704
704
|
end
|
705
705
|
end
|
706
706
|
end
|