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::ModuleOrClassCluster do
|
4
|
+
describe ::ModuleCluster::Define::ModuleOrClassCluster do
|
5
5
|
|
6
6
|
####################################
|
7
7
|
# self.should_include_or_extend? #
|
8
8
|
####################################
|
9
9
|
|
10
10
|
it 'should return true if module or class, false otherwise' do
|
11
|
-
ModuleCluster::Define::ModuleOrClassCluster.should_include_or_extend?( Kernel ).should == true
|
12
|
-
ModuleCluster::Define::ModuleOrClassCluster.should_include_or_extend?( Class ).should == true
|
13
|
-
ModuleCluster::Define::ModuleOrClassCluster.should_include_or_extend?( Object.new ).should == false
|
11
|
+
::ModuleCluster::Define::ModuleOrClassCluster.should_include_or_extend?( Kernel ).should == true
|
12
|
+
::ModuleCluster::Define::ModuleOrClassCluster.should_include_or_extend?( Class ).should == true
|
13
|
+
::ModuleCluster::Define::ModuleOrClassCluster.should_include_or_extend?( Object.new ).should == false
|
14
14
|
end
|
15
15
|
|
16
16
|
##########################
|
@@ -18,9 +18,9 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
18
18
|
##########################
|
19
19
|
|
20
20
|
it 'should report false' do
|
21
|
-
ModuleCluster::Define::ModuleOrClassCluster.should_cascade?( Kernel ).should == false
|
22
|
-
ModuleCluster::Define::ModuleOrClassCluster.should_cascade?( Class ).should == false
|
23
|
-
ModuleCluster::Define::ModuleOrClassCluster.should_cascade?( Object.new ).should == false
|
21
|
+
::ModuleCluster::Define::ModuleOrClassCluster.should_cascade?( Kernel ).should == false
|
22
|
+
::ModuleCluster::Define::ModuleOrClassCluster.should_cascade?( Class ).should == false
|
23
|
+
::ModuleCluster::Define::ModuleOrClassCluster.should_cascade?( Object.new ).should == false
|
24
24
|
end
|
25
25
|
|
26
26
|
###########################################
|
@@ -28,7 +28,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
28
28
|
###########################################
|
29
29
|
|
30
30
|
it 'can include other modules when this one is included in a module or class' do
|
31
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock01
|
31
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock01
|
32
32
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
33
33
|
module Module1
|
34
34
|
end
|
@@ -38,19 +38,19 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
38
38
|
respond_to?( :included ).should == true
|
39
39
|
module ModuleProof
|
40
40
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock01
|
41
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module1 ).should == true
|
42
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module2 ).should == true
|
41
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module1 ).should == true
|
42
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module2 ).should == true
|
43
43
|
eigenclass = class << self ; self ; end
|
44
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module1 ).should == false
|
45
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module2 ).should == false
|
44
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module1 ).should == false
|
45
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module2 ).should == false
|
46
46
|
end
|
47
47
|
class ClassProof
|
48
48
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock01
|
49
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module1 ).should == true
|
50
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module2 ).should == true
|
49
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module1 ).should == true
|
50
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module2 ).should == true
|
51
51
|
eigenclass = class << self ; self ; end
|
52
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module1 ).should == false
|
53
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module2 ).should == false
|
52
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module1 ).should == false
|
53
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock01::Module2 ).should == false
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
@@ -60,7 +60,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
60
60
|
##########################################
|
61
61
|
|
62
62
|
it 'can extend other modules when this one is included in a module or class' do
|
63
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock02
|
63
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock02
|
64
64
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
65
65
|
module Module1
|
66
66
|
end
|
@@ -70,19 +70,19 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
70
70
|
respond_to?( :included ).should == true
|
71
71
|
module ModuleProof
|
72
72
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock02
|
73
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module1 ).should == false
|
74
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module2 ).should == false
|
73
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module1 ).should == false
|
74
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module2 ).should == false
|
75
75
|
eigenclass = class << self ; self ; end
|
76
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module1 ).should == true
|
77
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module2 ).should == true
|
76
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module1 ).should == true
|
77
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module2 ).should == true
|
78
78
|
end
|
79
79
|
class ClassProof
|
80
80
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock02
|
81
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module1 ).should == false
|
82
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module2 ).should == false
|
81
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module1 ).should == false
|
82
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module2 ).should == false
|
83
83
|
eigenclass = class << self ; self ; end
|
84
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module1 ).should == true
|
85
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module2 ).should == true
|
84
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module1 ).should == true
|
85
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock02::Module2 ).should == true
|
86
86
|
end
|
87
87
|
end
|
88
88
|
end
|
@@ -92,7 +92,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
92
92
|
#######################################################
|
93
93
|
|
94
94
|
it 'can include and extend other modules when this one is included in a module or class' do
|
95
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock03
|
95
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock03
|
96
96
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
97
97
|
module Module1
|
98
98
|
end
|
@@ -102,19 +102,19 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
102
102
|
respond_to?( :included ).should == true
|
103
103
|
module ModuleProof
|
104
104
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock03
|
105
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module1 ).should == true
|
106
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module2 ).should == true
|
105
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module1 ).should == true
|
106
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module2 ).should == true
|
107
107
|
eigenclass = class << self ; self ; end
|
108
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module1 ).should == true
|
109
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module2 ).should == true
|
108
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module1 ).should == true
|
109
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module2 ).should == true
|
110
110
|
end
|
111
111
|
class ClassProof
|
112
112
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock03
|
113
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module1 ).should == true
|
114
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module2 ).should == true
|
113
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module1 ).should == true
|
114
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module2 ).should == true
|
115
115
|
eigenclass = class << self ; self ; end
|
116
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module1 ).should == true
|
117
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module2 ).should == true
|
116
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module1 ).should == true
|
117
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock03::Module2 ).should == true
|
118
118
|
end
|
119
119
|
end
|
120
120
|
end
|
@@ -124,7 +124,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
124
124
|
##########################################
|
125
125
|
|
126
126
|
it 'can include other modules when this one extends a module or class' do
|
127
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock04
|
127
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock04
|
128
128
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
129
129
|
module Module1
|
130
130
|
end
|
@@ -134,19 +134,19 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
134
134
|
respond_to?( :extended ).should == true
|
135
135
|
module ModuleProof
|
136
136
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock04
|
137
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module1 ).should == true
|
138
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module2 ).should == true
|
137
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module1 ).should == true
|
138
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module2 ).should == true
|
139
139
|
eigenclass = class << self ; self ; end
|
140
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module1 ).should == false
|
141
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module2 ).should == false
|
140
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module1 ).should == false
|
141
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module2 ).should == false
|
142
142
|
end
|
143
143
|
class ClassProof
|
144
144
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock04
|
145
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module1 ).should == true
|
146
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module2 ).should == true
|
145
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module1 ).should == true
|
146
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module2 ).should == true
|
147
147
|
eigenclass = class << self ; self ; end
|
148
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module1 ).should == false
|
149
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module2 ).should == false
|
148
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module1 ).should == false
|
149
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock04::Module2 ).should == false
|
150
150
|
end
|
151
151
|
end
|
152
152
|
end
|
@@ -156,7 +156,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
156
156
|
#########################################
|
157
157
|
|
158
158
|
it 'can extend other modules when this one extends a module or class' do
|
159
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock05
|
159
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock05
|
160
160
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
161
161
|
module Module1
|
162
162
|
end
|
@@ -166,25 +166,25 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
166
166
|
respond_to?( :extended ).should == true
|
167
167
|
module ModuleProof
|
168
168
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock05
|
169
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module1 ).should == false
|
170
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module2 ).should == false
|
169
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module1 ).should == false
|
170
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module2 ).should == false
|
171
171
|
eigenclass = class << self ; self ; end
|
172
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module1 ).should == true
|
173
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module2 ).should == true
|
172
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module1 ).should == true
|
173
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module2 ).should == true
|
174
174
|
end
|
175
175
|
class ClassProof
|
176
176
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock05
|
177
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module1 ).should == false
|
178
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module2 ).should == false
|
177
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module1 ).should == false
|
178
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module2 ).should == false
|
179
179
|
eigenclass = class << self ; self ; end
|
180
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module1 ).should == true
|
181
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module2 ).should == true
|
180
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module1 ).should == true
|
181
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module2 ).should == true
|
182
182
|
end
|
183
183
|
Object.new.instance_eval do
|
184
184
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock05
|
185
185
|
eigenclass = class << self ; self ; end
|
186
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module1 ).should == false
|
187
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module2 ).should == false
|
186
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module1 ).should == false
|
187
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock05::Module2 ).should == false
|
188
188
|
end
|
189
189
|
end
|
190
190
|
end
|
@@ -194,7 +194,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
194
194
|
######################################################
|
195
195
|
|
196
196
|
it 'can include and extend other modules when this one extends a module or class' do
|
197
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock06
|
197
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock06
|
198
198
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
199
199
|
module Module1
|
200
200
|
end
|
@@ -204,25 +204,25 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
204
204
|
respond_to?( :extended ).should == true
|
205
205
|
module ModuleProof
|
206
206
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock06
|
207
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module1 ).should == true
|
208
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module2 ).should == true
|
207
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module1 ).should == true
|
208
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module2 ).should == true
|
209
209
|
eigenclass = class << self ; self ; end
|
210
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module1 ).should == true
|
211
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module2 ).should == true
|
210
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module1 ).should == true
|
211
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module2 ).should == true
|
212
212
|
end
|
213
213
|
class ClassProof
|
214
214
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock06
|
215
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module1 ).should == true
|
216
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module2 ).should == true
|
215
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module1 ).should == true
|
216
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module2 ).should == true
|
217
217
|
eigenclass = class << self ; self ; end
|
218
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module1 ).should == true
|
219
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module2 ).should == true
|
218
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module1 ).should == true
|
219
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module2 ).should == true
|
220
220
|
end
|
221
221
|
Object.new.instance_eval do
|
222
222
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock06
|
223
223
|
eigenclass = class << self ; self ; end
|
224
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module1 ).should == false
|
225
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module2 ).should == false
|
224
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module1 ).should == false
|
225
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock06::Module2 ).should == false
|
226
226
|
end
|
227
227
|
end
|
228
228
|
end
|
@@ -232,7 +232,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
232
232
|
###############################################
|
233
233
|
|
234
234
|
it 'can include other modules before this one when this one is included in a module or class' do
|
235
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock07
|
235
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock07
|
236
236
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
237
237
|
module Module1
|
238
238
|
end
|
@@ -242,19 +242,19 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
242
242
|
respond_to?( :append_features ).should == true
|
243
243
|
module ModuleProof
|
244
244
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock07
|
245
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module1 ).should == true
|
246
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module2 ).should == true
|
245
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module1 ).should == true
|
246
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module2 ).should == true
|
247
247
|
eigenclass = class << self ; self ; end
|
248
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module1 ).should == false
|
249
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module2 ).should == false
|
248
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module1 ).should == false
|
249
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module2 ).should == false
|
250
250
|
end
|
251
251
|
class ClassProof
|
252
252
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock07
|
253
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module1 ).should == true
|
254
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module2 ).should == true
|
253
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module1 ).should == true
|
254
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module2 ).should == true
|
255
255
|
eigenclass = class << self ; self ; end
|
256
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module1 ).should == false
|
257
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module2 ).should == false
|
256
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module1 ).should == false
|
257
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock07::Module2 ).should == false
|
258
258
|
end
|
259
259
|
end
|
260
260
|
end
|
@@ -264,7 +264,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
264
264
|
##############################################
|
265
265
|
|
266
266
|
it 'can extend other modules before this one when this one is included in a module or class' do
|
267
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock08
|
267
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock08
|
268
268
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
269
269
|
module Module1
|
270
270
|
end
|
@@ -274,19 +274,19 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
274
274
|
respond_to?( :append_features ).should == true
|
275
275
|
module ModuleProof
|
276
276
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock08
|
277
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module1 ).should == false
|
278
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module2 ).should == false
|
277
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module1 ).should == false
|
278
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module2 ).should == false
|
279
279
|
eigenclass = class << self ; self ; end
|
280
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module1 ).should == true
|
281
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module2 ).should == true
|
280
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module1 ).should == true
|
281
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module2 ).should == true
|
282
282
|
end
|
283
283
|
class ClassProof
|
284
284
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock08
|
285
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module1 ).should == false
|
286
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module2 ).should == false
|
285
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module1 ).should == false
|
286
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module2 ).should == false
|
287
287
|
eigenclass = class << self ; self ; end
|
288
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module1 ).should == true
|
289
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module2 ).should == true
|
288
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module1 ).should == true
|
289
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock08::Module2 ).should == true
|
290
290
|
end
|
291
291
|
end
|
292
292
|
end
|
@@ -296,7 +296,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
296
296
|
###########################################################
|
297
297
|
|
298
298
|
it 'can include and extend other modules before this one when this one is included in a module or class' do
|
299
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock09
|
299
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock09
|
300
300
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
301
301
|
module Module1
|
302
302
|
end
|
@@ -306,19 +306,19 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
306
306
|
respond_to?( :append_features ).should == true
|
307
307
|
module ModuleProof
|
308
308
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock09
|
309
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module1 ).should == true
|
310
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module2 ).should == true
|
309
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module1 ).should == true
|
310
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module2 ).should == true
|
311
311
|
eigenclass = class << self ; self ; end
|
312
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module1 ).should == true
|
313
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module2 ).should == true
|
312
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module1 ).should == true
|
313
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module2 ).should == true
|
314
314
|
end
|
315
315
|
class ClassProof
|
316
316
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock09
|
317
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module1 ).should == true
|
318
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module2 ).should == true
|
317
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module1 ).should == true
|
318
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module2 ).should == true
|
319
319
|
eigenclass = class << self ; self ; end
|
320
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module1 ).should == true
|
321
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module2 ).should == true
|
320
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module1 ).should == true
|
321
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock09::Module2 ).should == true
|
322
322
|
end
|
323
323
|
end
|
324
324
|
end
|
@@ -328,7 +328,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
328
328
|
##############################################
|
329
329
|
|
330
330
|
it 'can include other modules before this one when this one extends a module or class' do
|
331
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock10
|
331
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock10
|
332
332
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
333
333
|
module Module1
|
334
334
|
end
|
@@ -338,19 +338,19 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
338
338
|
respond_to?( :extend_object ).should == true
|
339
339
|
module ModuleProof
|
340
340
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock10
|
341
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module1 ).should == true
|
342
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module2 ).should == true
|
341
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module1 ).should == true
|
342
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module2 ).should == true
|
343
343
|
eigenclass = class << self ; self ; end
|
344
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module1 ).should == false
|
345
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module2 ).should == false
|
344
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module1 ).should == false
|
345
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module2 ).should == false
|
346
346
|
end
|
347
347
|
class ClassProof
|
348
348
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock10
|
349
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module1 ).should == true
|
350
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module2 ).should == true
|
349
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module1 ).should == true
|
350
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module2 ).should == true
|
351
351
|
eigenclass = class << self ; self ; end
|
352
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module1 ).should == false
|
353
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module2 ).should == false
|
352
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module1 ).should == false
|
353
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock10::Module2 ).should == false
|
354
354
|
end
|
355
355
|
end
|
356
356
|
end
|
@@ -360,7 +360,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
360
360
|
#############################################
|
361
361
|
|
362
362
|
it 'can extend other modules before this one when this one extends a module or class' do
|
363
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock11
|
363
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock11
|
364
364
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
365
365
|
module Module1
|
366
366
|
end
|
@@ -370,25 +370,25 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
370
370
|
respond_to?( :extend_object ).should == true
|
371
371
|
module ModuleProof
|
372
372
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock11
|
373
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module1 ).should == false
|
374
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module2 ).should == false
|
373
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module1 ).should == false
|
374
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module2 ).should == false
|
375
375
|
eigenclass = class << self ; self ; end
|
376
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module1 ).should == true
|
377
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module2 ).should == true
|
376
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module1 ).should == true
|
377
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module2 ).should == true
|
378
378
|
end
|
379
379
|
class ClassProof
|
380
380
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock11
|
381
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module1 ).should == false
|
382
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module2 ).should == false
|
381
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module1 ).should == false
|
382
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module2 ).should == false
|
383
383
|
eigenclass = class << self ; self ; end
|
384
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module1 ).should == true
|
385
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module2 ).should == true
|
384
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module1 ).should == true
|
385
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module2 ).should == true
|
386
386
|
end
|
387
387
|
Object.new.instance_eval do
|
388
388
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock11
|
389
389
|
eigenclass = class << self ; self ; end
|
390
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module1 ).should == false
|
391
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module2 ).should == false
|
390
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module1 ).should == false
|
391
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock11::Module2 ).should == false
|
392
392
|
end
|
393
393
|
end
|
394
394
|
end
|
@@ -398,7 +398,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
398
398
|
##########################################################
|
399
399
|
|
400
400
|
it 'can include and extend other modules before this one when this one extends a module or class' do
|
401
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock12
|
401
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock12
|
402
402
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
403
403
|
module Module1
|
404
404
|
end
|
@@ -408,25 +408,25 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
408
408
|
respond_to?( :extend_object ).should == true
|
409
409
|
module ModuleProof
|
410
410
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock12
|
411
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module1 ).should == true
|
412
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module2 ).should == true
|
411
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module1 ).should == true
|
412
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module2 ).should == true
|
413
413
|
eigenclass = class << self ; self ; end
|
414
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module1 ).should == true
|
415
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module2 ).should == true
|
414
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module1 ).should == true
|
415
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module2 ).should == true
|
416
416
|
end
|
417
417
|
class ClassProof
|
418
418
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock12
|
419
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module1 ).should == true
|
420
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module2 ).should == true
|
419
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module1 ).should == true
|
420
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module2 ).should == true
|
421
421
|
eigenclass = class << self ; self ; end
|
422
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module1 ).should == true
|
423
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module2 ).should == true
|
422
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module1 ).should == true
|
423
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module2 ).should == true
|
424
424
|
end
|
425
425
|
Object.new.instance_eval do
|
426
426
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock12
|
427
427
|
eigenclass = class << self ; self ; end
|
428
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module1 ).should == false
|
429
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module2 ).should == false
|
428
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module1 ).should == false
|
429
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock12::Module2 ).should == false
|
430
430
|
end
|
431
431
|
end
|
432
432
|
end
|
@@ -436,7 +436,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
436
436
|
#####################################################
|
437
437
|
|
438
438
|
it 'can include other modules when this one is included in or extends a module or class' do
|
439
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock13
|
439
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock13
|
440
440
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
441
441
|
module Module1
|
442
442
|
end
|
@@ -446,35 +446,35 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
446
446
|
respond_to?( :append_features ).should == true
|
447
447
|
module ModuleProof
|
448
448
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock13
|
449
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == true
|
450
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == true
|
449
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == true
|
450
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == true
|
451
451
|
eigenclass = class << self ; self ; end
|
452
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == false
|
453
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == false
|
452
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == false
|
453
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == false
|
454
454
|
end
|
455
455
|
module ModuleProof2
|
456
456
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock13
|
457
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == true
|
458
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == true
|
457
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == true
|
458
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == true
|
459
459
|
eigenclass = class << self ; self ; end
|
460
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == false
|
461
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == false
|
460
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == false
|
461
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == false
|
462
462
|
end
|
463
463
|
class ClassProof
|
464
464
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock13
|
465
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == true
|
466
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == true
|
465
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == true
|
466
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == true
|
467
467
|
eigenclass = class << self ; self ; end
|
468
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == false
|
469
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == false
|
468
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == false
|
469
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == false
|
470
470
|
end
|
471
471
|
class ClassProof2
|
472
472
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock13
|
473
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == true
|
474
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == true
|
473
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == true
|
474
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == true
|
475
475
|
eigenclass = class << self ; self ; end
|
476
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == false
|
477
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == false
|
476
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module1 ).should == false
|
477
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock13::Module2 ).should == false
|
478
478
|
end
|
479
479
|
end
|
480
480
|
end
|
@@ -484,7 +484,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
484
484
|
####################################################
|
485
485
|
|
486
486
|
it 'can extend other modules when this one is included in or extends a module or class' do
|
487
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock14
|
487
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock14
|
488
488
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
489
489
|
module Module1
|
490
490
|
end
|
@@ -494,35 +494,35 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
494
494
|
respond_to?( :included ).should == true
|
495
495
|
module ModuleProof
|
496
496
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock14
|
497
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == false
|
498
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == false
|
497
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == false
|
498
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == false
|
499
499
|
eigenclass = class << self ; self ; end
|
500
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == true
|
501
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == true
|
500
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == true
|
501
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == true
|
502
502
|
end
|
503
503
|
module ModuleProof2
|
504
504
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock14
|
505
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == false
|
506
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == false
|
505
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == false
|
506
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == false
|
507
507
|
eigenclass = class << self ; self ; end
|
508
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == true
|
509
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == true
|
508
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == true
|
509
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == true
|
510
510
|
end
|
511
511
|
class ClassProof
|
512
512
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock14
|
513
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == false
|
514
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == false
|
513
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == false
|
514
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == false
|
515
515
|
eigenclass = class << self ; self ; end
|
516
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == true
|
517
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == true
|
516
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == true
|
517
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == true
|
518
518
|
end
|
519
519
|
class ClassProof2
|
520
520
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock14
|
521
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == false
|
522
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == false
|
521
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == false
|
522
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == false
|
523
523
|
eigenclass = class << self ; self ; end
|
524
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == true
|
525
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == true
|
524
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module1 ).should == true
|
525
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock14::Module2 ).should == true
|
526
526
|
end
|
527
527
|
end
|
528
528
|
end
|
@@ -532,7 +532,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
532
532
|
#################################################################
|
533
533
|
|
534
534
|
it 'can include and extend other modules when this one is included in or extends a module or class' do
|
535
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock15
|
535
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock15
|
536
536
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
537
537
|
module Module1
|
538
538
|
end
|
@@ -542,35 +542,35 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
542
542
|
respond_to?( :included ).should == true
|
543
543
|
module ModuleProof
|
544
544
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock15
|
545
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
546
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
545
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
546
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
547
547
|
eigenclass = class << self ; self ; end
|
548
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
549
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
548
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
549
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
550
550
|
end
|
551
551
|
module ModuleProo2
|
552
552
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock15
|
553
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
554
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
553
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
554
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
555
555
|
eigenclass = class << self ; self ; end
|
556
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
557
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
556
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
557
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
558
558
|
end
|
559
559
|
class ClassProof
|
560
560
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock15
|
561
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
562
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
561
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
562
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
563
563
|
eigenclass = class << self ; self ; end
|
564
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
565
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
564
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
565
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
566
566
|
end
|
567
567
|
class ClassProof2
|
568
568
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock15
|
569
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
570
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
569
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
570
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
571
571
|
eigenclass = class << self ; self ; end
|
572
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
573
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
572
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module1 ).should == true
|
573
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock15::Module2 ).should == true
|
574
574
|
end
|
575
575
|
end
|
576
576
|
end
|
@@ -580,7 +580,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
580
580
|
#########################################################
|
581
581
|
|
582
582
|
it 'can include other modules before this one when this one is included in or extends a module or class' do
|
583
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock16
|
583
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock16
|
584
584
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
585
585
|
module Module1
|
586
586
|
end
|
@@ -590,35 +590,35 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
590
590
|
respond_to?( :append_features ).should == true
|
591
591
|
module ModuleProof
|
592
592
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock16
|
593
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == true
|
594
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == true
|
593
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == true
|
594
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == true
|
595
595
|
eigenclass = class << self ; self ; end
|
596
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == false
|
597
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == false
|
596
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == false
|
597
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == false
|
598
598
|
end
|
599
599
|
module ModuleProof2
|
600
600
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock16
|
601
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == true
|
602
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == true
|
601
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == true
|
602
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == true
|
603
603
|
eigenclass = class << self ; self ; end
|
604
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == false
|
605
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == false
|
604
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == false
|
605
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == false
|
606
606
|
end
|
607
607
|
class ClassProof
|
608
608
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock16
|
609
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == true
|
610
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == true
|
609
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == true
|
610
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == true
|
611
611
|
eigenclass = class << self ; self ; end
|
612
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == false
|
613
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == false
|
612
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == false
|
613
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == false
|
614
614
|
end
|
615
615
|
class ClassProof2
|
616
616
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock16
|
617
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == true
|
618
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == true
|
617
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == true
|
618
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == true
|
619
619
|
eigenclass = class << self ; self ; end
|
620
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == false
|
621
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == false
|
620
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module1 ).should == false
|
621
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock16::Module2 ).should == false
|
622
622
|
end
|
623
623
|
end
|
624
624
|
end
|
@@ -628,7 +628,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
628
628
|
########################################################
|
629
629
|
|
630
630
|
it 'can extend other modules before this one when this one is included in or extends a module or class' do
|
631
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock17
|
631
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock17
|
632
632
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
633
633
|
module Module1
|
634
634
|
end
|
@@ -638,41 +638,41 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
638
638
|
respond_to?( :extend_object ).should == true
|
639
639
|
module ModuleProof
|
640
640
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock17
|
641
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == false
|
642
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == false
|
641
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == false
|
642
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == false
|
643
643
|
eigenclass = class << self ; self ; end
|
644
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == true
|
645
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == true
|
644
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == true
|
645
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == true
|
646
646
|
end
|
647
647
|
module ModuleProof2
|
648
648
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock17
|
649
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == false
|
650
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == false
|
649
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == false
|
650
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == false
|
651
651
|
eigenclass = class << self ; self ; end
|
652
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == true
|
653
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == true
|
652
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == true
|
653
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == true
|
654
654
|
end
|
655
655
|
class ClassProof
|
656
656
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock17
|
657
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == false
|
658
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == false
|
657
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == false
|
658
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == false
|
659
659
|
eigenclass = class << self ; self ; end
|
660
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == true
|
661
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == true
|
660
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == true
|
661
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == true
|
662
662
|
end
|
663
663
|
class ClassProof2
|
664
664
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock17
|
665
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == false
|
666
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == false
|
665
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == false
|
666
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == false
|
667
667
|
eigenclass = class << self ; self ; end
|
668
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == true
|
669
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == true
|
668
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == true
|
669
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == true
|
670
670
|
end
|
671
671
|
Object.new.instance_eval do
|
672
672
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock17
|
673
673
|
eigenclass = class << self ; self ; end
|
674
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == false
|
675
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == false
|
674
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module1 ).should == false
|
675
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock17::Module2 ).should == false
|
676
676
|
end
|
677
677
|
end
|
678
678
|
end
|
@@ -682,7 +682,7 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
682
682
|
#####################################################################
|
683
683
|
|
684
684
|
it 'can include and extend other modules before this one when this one is included in or extends a module or class' do
|
685
|
-
module ModuleCluster::Define::ModuleOrClassCluster::Mock18
|
685
|
+
module ::ModuleCluster::Define::ModuleOrClassCluster::Mock18
|
686
686
|
extend ::ModuleCluster::Define::ModuleOrClassCluster
|
687
687
|
module Module1
|
688
688
|
end
|
@@ -692,35 +692,35 @@ describe ModuleCluster::Define::ModuleOrClassCluster do
|
|
692
692
|
respond_to?( :append_features ).should == true
|
693
693
|
module ModuleProof
|
694
694
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock18
|
695
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
696
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
695
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
696
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
697
697
|
eigenclass = class << self ; self ; end
|
698
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
699
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
698
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
699
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
700
700
|
end
|
701
701
|
module ModuleProof2
|
702
702
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock18
|
703
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
704
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
703
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
704
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
705
705
|
eigenclass = class << self ; self ; end
|
706
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
707
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
706
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
707
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
708
708
|
end
|
709
709
|
class ClassProof
|
710
710
|
include ::ModuleCluster::Define::ModuleOrClassCluster::Mock18
|
711
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
712
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
711
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
712
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
713
713
|
eigenclass = class << self ; self ; end
|
714
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
715
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
714
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
715
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
716
716
|
end
|
717
717
|
class ClassProof2
|
718
718
|
extend ::ModuleCluster::Define::ModuleOrClassCluster::Mock18
|
719
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
720
|
-
ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
719
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
720
|
+
ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
721
721
|
eigenclass = class << self ; self ; end
|
722
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
723
|
-
eigenclass.ancestors.include?( ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
722
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module1 ).should == true
|
723
|
+
eigenclass.ancestors.include?( ::ModuleCluster::Define::ModuleOrClassCluster::Mock18::Module2 ).should == true
|
724
724
|
end
|
725
725
|
end
|
726
726
|
end
|