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.
Files changed (89) hide show
  1. data/README.md +21 -0
  2. data/README.rdoc +21 -0
  3. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClass.rb +83 -0
  4. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingClassOrModule.rb +70 -0
  5. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModule.rb +79 -0
  6. data/lib/module-cluster/ModuleCluster/Define/Block/CascadingModuleOrSubclass.rb +22 -0
  7. data/lib/module-cluster/ModuleCluster/Define/Block/Class.rb +15 -7
  8. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrInstance.rb +15 -7
  9. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModule.rb +15 -7
  10. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrInstance.rb +15 -7
  11. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrModuleOrSubclass.rb +11 -3
  12. data/lib/module-cluster/ModuleCluster/Define/Block/ClassOrSubclass.rb +10 -2
  13. data/lib/module-cluster/ModuleCluster/Define/Block/Instance.rb +15 -3
  14. data/lib/module-cluster/ModuleCluster/Define/Block/Module.rb +15 -7
  15. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrInstance.rb +15 -7
  16. data/lib/module-cluster/ModuleCluster/Define/Block/ModuleOrSubclass.rb +10 -2
  17. data/lib/module-cluster/ModuleCluster/Define/Block/Subclass.rb +13 -2
  18. data/lib/module-cluster/ModuleCluster/Define/Block.rb +1 -1
  19. data/lib/module-cluster/ModuleCluster/Define/ClassCluster.rb +19 -19
  20. data/lib/module-cluster/ModuleCluster/Define/ClassOrInstanceCluster.rb +34 -34
  21. data/lib/module-cluster/ModuleCluster/Define/Cluster.rb +19 -19
  22. data/lib/module-cluster/ModuleCluster/Define/ClusterCascades.rb +19 -19
  23. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToClass.rb +19 -19
  24. data/lib/module-cluster/ModuleCluster/Define/ClusterCascadesToModule.rb +19 -19
  25. data/lib/module-cluster/ModuleCluster/Define/Deprecated.rb +1 -1
  26. data/lib/module-cluster/ModuleCluster/Define/InstanceCluster.rb +3 -3
  27. data/lib/module-cluster/ModuleCluster/Define/ModuleCluster.rb +19 -19
  28. data/lib/module-cluster/ModuleCluster/Define/ModuleOrClassCluster.rb +43 -43
  29. data/lib/module-cluster/ModuleCluster/Define/ModuleOrInstanceCluster.rb +34 -34
  30. data/lib/module-cluster/ModuleCluster/Define/Status.rb +1 -1
  31. data/lib/module-cluster/ModuleCluster/Define.rb +1 -1
  32. data/lib/module-cluster/ModuleCluster/Suspend/Hooks.rb +1 -1
  33. data/lib/module-cluster/ModuleCluster/Suspend/WithoutHooks.rb +1 -1
  34. data/lib/module-cluster/ModuleCluster/Suspend.rb +1 -1
  35. data/lib/module-cluster/ModuleCluster.rb +1 -1
  36. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/ClusterStack.rb +3 -3
  37. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/PerformCascades.rb +85 -32
  38. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures/Subclass.rb +6 -3
  39. data/lib/module-cluster/_private_/ModuleCluster/CascadeFeatures.rb +5 -5
  40. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Class.rb +9 -9
  41. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Inherited.rb +3 -3
  42. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Instance.rb +5 -5
  43. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Module.rb +9 -9
  44. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block/Set.rb +1 -0
  45. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Block.rb +1 -1
  46. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Extends.rb +13 -13
  47. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Includes.rb +10 -10
  48. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsExtends.rb +13 -13
  49. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/PrependsIncludes.rb +10 -10
  50. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy.rb +1 -1
  51. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Status.rb +1 -1
  52. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack/Suspend.rb +1 -1
  53. data/lib/module-cluster/_private_/ModuleCluster/ClusterStack.rb +1 -1
  54. data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade/Subclass.rb +1 -1
  55. data/lib/module-cluster/_private_/ModuleCluster/ExtendForCascade.rb +1 -1
  56. data/lib/module-cluster.rb +14 -2
  57. data/spec/ModuleCluster/Define/Block/CascadingClassOrModule_spec.rb +285 -0
  58. data/spec/ModuleCluster/Define/Block/CascadingClass_spec.rb +241 -0
  59. data/spec/ModuleCluster/Define/Block/CascadingModuleOrSubclass_spec.rb +56 -0
  60. data/spec/ModuleCluster/Define/Block/CascadingModule_spec.rb +278 -0
  61. data/spec/ModuleCluster/Define/Block/ClassOrInstance_spec.rb +13 -13
  62. data/spec/ModuleCluster/Define/Block/ClassOrModuleOrInstance_spec.rb +13 -13
  63. data/spec/ModuleCluster/Define/Block/ClassOrModuleOrSubclass_spec.rb +2 -3
  64. data/spec/ModuleCluster/Define/Block/ClassOrModule_spec.rb +13 -13
  65. data/spec/ModuleCluster/Define/Block/ClassOrSubclass_spec.rb +2 -2
  66. data/spec/ModuleCluster/Define/Block/Class_spec.rb +13 -13
  67. data/spec/ModuleCluster/Define/Block/Instance_spec.rb +5 -5
  68. data/spec/ModuleCluster/Define/Block/ModuleOrInstance_spec.rb +1 -1
  69. data/spec/ModuleCluster/Define/Block/ModuleOrSubclass_spec.rb +2 -4
  70. data/spec/ModuleCluster/Define/Block/Module_spec.rb +13 -13
  71. data/spec/ModuleCluster/Define/Block/Subclass_spec.rb +8 -8
  72. data/spec/ModuleCluster/Define/Block_spec.rb +9 -9
  73. data/spec/ModuleCluster/Define/ClassCluster_spec.rb +227 -227
  74. data/spec/ModuleCluster/Define/ClassOrInstanceCluster_spec.rb +197 -197
  75. data/spec/ModuleCluster/Define/ClusterCascadesToClass_spec.rb +228 -228
  76. data/spec/ModuleCluster/Define/ClusterCascadesToModule_spec.rb +232 -232
  77. data/spec/ModuleCluster/Define/ClusterCascades_spec.rb +224 -224
  78. data/spec/ModuleCluster/Define/Cluster_spec.rb +221 -221
  79. data/spec/ModuleCluster/Define/InstanceCluster_spec.rb +29 -29
  80. data/spec/ModuleCluster/Define/ModuleCluster_spec.rb +227 -227
  81. data/spec/ModuleCluster/Define/ModuleOrClassCluster_spec.rb +227 -227
  82. data/spec/ModuleCluster/Define/ModuleOrInstanceCluster_spec.rb +197 -197
  83. data/spec/ModuleCluster/Suspend/Hooks_spec.rb +120 -120
  84. data/spec/ModuleCluster/Suspend/WithoutHooks_spec.rb +120 -120
  85. data/spec/ModuleCluster_spec.rb +2 -2
  86. data/spec/_private_/ModuleCluster/CascadeFeatures/PerformCascades_spec.rb +192 -192
  87. data/spec/_private_/ModuleCluster/ClusterStack/Set/MultiSetProxy_spec.rb +129 -129
  88. data/spec/_private_/ModuleCluster/ClusterStack/Suspend_spec.rb +17 -17
  89. metadata +9 -1
@@ -1,16 +1,16 @@
1
1
 
2
2
  require_relative '../../../lib/module-cluster.rb'
3
3
 
4
- describe ModuleCluster::Define::ClusterCascadesToModule do
4
+ describe ::ModuleCluster::Define::ClusterCascadesToModule do
5
5
 
6
6
  ##########################
7
7
  # self.should_cascade? #
8
8
  ##########################
9
9
 
10
10
  it 'should cascade to modules' do
11
- ModuleCluster::Define::ClusterCascadesToModule.should_cascade?( Kernel ).should == true
12
- ModuleCluster::Define::ClusterCascadesToModule.should_cascade?( Class ).should == false
13
- ModuleCluster::Define::ClusterCascadesToModule.should_cascade?( Object.new ).should == false
11
+ ::ModuleCluster::Define::ClusterCascadesToModule.should_cascade?( Kernel ).should == true
12
+ ::ModuleCluster::Define::ClusterCascadesToModule.should_cascade?( Class ).should == false
13
+ ::ModuleCluster::Define::ClusterCascadesToModule.should_cascade?( Object.new ).should == false
14
14
  end
15
15
 
16
16
  #########################################
@@ -18,7 +18,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
18
18
  #########################################
19
19
 
20
20
  it 'include modules for any class this module or any including modules are included in' do
21
- module ModuleCluster::Define::ClusterCascadesToModule::Mock01
21
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock01
22
22
  extend ::ModuleCluster::Define::ClusterCascadesToModule
23
23
  module Module1
24
24
  end
@@ -28,36 +28,36 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
28
28
  respond_to?( :included ).should == true
29
29
  module ModuleProof1
30
30
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock01
31
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == true
32
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == true
31
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == true
32
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == true
33
33
  eigenclass = class << self ; self ; end
34
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
35
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
34
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
35
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
36
36
  end
37
37
  class ClassProof
38
38
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock01
39
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
40
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
39
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
40
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
41
41
  eigenclass = class << self ; self ; end
42
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
43
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
42
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
43
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
44
44
  end
45
45
  module ModuleProof2
46
46
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::ModuleProof1
47
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == true
48
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == true
47
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == true
48
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == true
49
49
  eigenclass = class << self ; self ; end
50
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
51
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
50
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
51
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
52
52
  end
53
53
  class ClassProof2
54
54
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::ModuleProof1
55
55
  # true b/c of ancestor chain
56
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == true
57
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == true
56
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == true
57
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == true
58
58
  eigenclass = class << self ; self ; end
59
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
60
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
59
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module1 ).should == false
60
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock01::Module2 ).should == false
61
61
  end
62
62
  end
63
63
  end
@@ -67,7 +67,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
67
67
  ########################################
68
68
 
69
69
  it 'extends modules for any class this module or any including modules are included in' do
70
- module ModuleCluster::Define::ClusterCascadesToModule::Mock02
70
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock02
71
71
  extend ::ModuleCluster::Define::ClusterCascadesToModule
72
72
  module Module1
73
73
  end
@@ -77,35 +77,35 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
77
77
  respond_to?( :included ).should == true
78
78
  module ModuleProof1
79
79
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock02
80
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
81
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
80
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
81
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
82
82
  eigenclass = class << self ; self ; end
83
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == true
84
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == true
83
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == true
84
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == true
85
85
  end
86
86
  class ClassProof
87
87
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock02
88
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
89
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
88
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
89
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
90
90
  eigenclass = class << self ; self ; end
91
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
92
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
91
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
92
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
93
93
  end
94
94
  module ModuleProof2
95
95
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::ModuleProof1
96
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
97
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
96
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
97
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
98
98
  eigenclass = class << self ; self ; end
99
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == true
100
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == true
99
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == true
100
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == true
101
101
  end
102
102
  class ClassProof2
103
103
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::ModuleProof1
104
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
105
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
104
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
105
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
106
106
  eigenclass = class << self ; self ; end
107
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
108
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
107
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module1 ).should == false
108
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock02::Module2 ).should == false
109
109
  end
110
110
  end
111
111
  end
@@ -115,7 +115,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
115
115
  #####################################################
116
116
 
117
117
  it 'include and extends modules for any class this module or any including modules are included in' do
118
- module ModuleCluster::Define::ClusterCascadesToModule::Mock03
118
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock03
119
119
  extend ::ModuleCluster::Define::ClusterCascadesToModule
120
120
  module Module1
121
121
  end
@@ -125,36 +125,36 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
125
125
  respond_to?( :included ).should == true
126
126
  module ModuleProof1
127
127
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock03
128
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
129
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
128
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
129
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
130
130
  eigenclass = class << self ; self ; end
131
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
132
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
131
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
132
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
133
133
  end
134
134
  class ClassProof
135
135
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock03
136
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == false
137
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == false
136
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == false
137
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == false
138
138
  eigenclass = class << self ; self ; end
139
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == false
140
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == false
139
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == false
140
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == false
141
141
  end
142
142
  module ModuleProof2
143
143
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::ModuleProof1
144
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
145
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
144
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
145
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
146
146
  eigenclass = class << self ; self ; end
147
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
148
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
147
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
148
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
149
149
  end
150
150
  class ClassProof2
151
151
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::ModuleProof1
152
152
  # true b/c of ancestor chain
153
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
154
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
153
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == true
154
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == true
155
155
  eigenclass = class << self ; self ; end
156
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == false
157
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == false
156
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module1 ).should == false
157
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock03::Module2 ).should == false
158
158
  end
159
159
  end
160
160
  end
@@ -164,7 +164,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
164
164
  ########################################
165
165
 
166
166
  it 'include modules for any class this module is extended in' do
167
- module ModuleCluster::Define::ClusterCascadesToModule::Mock04
167
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock04
168
168
  extend ::ModuleCluster::Define::ClusterCascadesToModule
169
169
  module Module1
170
170
  end
@@ -174,50 +174,50 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
174
174
  respond_to?( :extended ).should == true
175
175
  module ModuleProof1
176
176
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04
177
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
178
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
177
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
178
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
179
179
  eigenclass = class << self ; self ; end
180
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
181
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
180
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
181
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
182
182
  end
183
183
  class ClassProof
184
184
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04
185
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
186
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
185
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
186
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
187
187
  eigenclass = class << self ; self ; end
188
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
189
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
188
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
189
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
190
190
  end
191
191
  Object.new.instance_eval do
192
192
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04
193
193
  eigenclass = class << self ; self ; end
194
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
195
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
194
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
195
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
196
196
  end
197
197
  module ModuleProof2
198
198
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::ModuleProof1
199
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
200
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
199
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
200
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
201
201
  eigenclass = class << self ; self ; end
202
202
  # true because of ancestor chain
203
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
204
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
203
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
204
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
205
205
  end
206
206
  class ClassProof2
207
207
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::ModuleProof1
208
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
209
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
208
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == false
209
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == false
210
210
  eigenclass = class << self ; self ; end
211
211
  # true because of ancestor chain
212
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
213
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
212
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
213
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
214
214
  end
215
215
  Object.new.instance_eval do
216
216
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::ModuleProof1
217
217
  eigenclass = class << self ; self ; end
218
218
  # true because of ancestor chain
219
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
220
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
219
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module1 ).should == true
220
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock04::Module2 ).should == true
221
221
  end
222
222
  end
223
223
  end
@@ -227,7 +227,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
227
227
  #######################################
228
228
 
229
229
  it 'extend modules for any class this module is extended in' do
230
- module ModuleCluster::Define::ClusterCascadesToModule::Mock05
230
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock05
231
231
  extend ::ModuleCluster::Define::ClusterCascadesToModule
232
232
  module Module1
233
233
  end
@@ -237,47 +237,47 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
237
237
  respond_to?( :extended ).should == true
238
238
  module ModuleProof1
239
239
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05
240
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
241
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
240
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
241
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
242
242
  eigenclass = class << self ; self ; end
243
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == true
244
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == true
243
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == true
244
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == true
245
245
  end
246
246
  class ClassProof
247
247
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05
248
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
249
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
248
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
249
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
250
250
  eigenclass = class << self ; self ; end
251
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
252
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
251
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
252
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
253
253
  end
254
254
  Object.new.instance_eval do
255
255
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05
256
256
  eigenclass = class << self ; self ; end
257
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
258
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
257
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
258
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
259
259
  end
260
260
  module ModuleProof2
261
261
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::ModuleProof1
262
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
263
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
262
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
263
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
264
264
  eigenclass = class << self ; self ; end
265
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == true
266
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == true
265
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == true
266
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == true
267
267
  end
268
268
  class ClassProof2
269
269
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::ModuleProof1
270
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
271
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
270
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
271
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
272
272
  eigenclass = class << self ; self ; end
273
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
274
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
273
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
274
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
275
275
  end
276
276
  Object.new.instance_eval do
277
277
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::ModuleProof1
278
278
  eigenclass = class << self ; self ; end
279
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
280
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
279
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module1 ).should == false
280
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock05::Module2 ).should == false
281
281
  end
282
282
  end
283
283
  end
@@ -287,7 +287,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
287
287
  ####################################################
288
288
 
289
289
  it 'include and extend modules for any class this module is extended in' do
290
- module ModuleCluster::Define::ClusterCascadesToModule::Mock06
290
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock06
291
291
  extend ::ModuleCluster::Define::ClusterCascadesToModule
292
292
  module Module1
293
293
  end
@@ -297,49 +297,49 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
297
297
  respond_to?( :extended ).should == true
298
298
  module ModuleProof1
299
299
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06
300
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
301
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
300
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
301
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
302
302
  eigenclass = class << self ; self ; end
303
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
304
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
303
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
304
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
305
305
  end
306
306
  class ClassProof
307
307
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06
308
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
309
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
308
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
309
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
310
310
  eigenclass = class << self ; self ; end
311
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
312
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
311
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
312
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
313
313
  end
314
314
  Object.new.instance_eval do
315
315
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06
316
316
  eigenclass = class << self ; self ; end
317
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
318
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
317
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
318
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
319
319
  end
320
320
  module ModuleProof2
321
321
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::ModuleProof1
322
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
323
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
322
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
323
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
324
324
  eigenclass = class << self ; self ; end
325
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
326
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
325
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
326
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
327
327
  end
328
328
  class ClassProof2
329
329
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::ModuleProof1
330
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
331
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
330
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == false
331
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == false
332
332
  eigenclass = class << self ; self ; end
333
333
  # true because Proof2's ancestor chain includes
334
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
335
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
334
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
335
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
336
336
  end
337
337
  Object.new.instance_eval do
338
338
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::ModuleProof1
339
339
  eigenclass = class << self ; self ; end
340
340
  # true because Proof2's ancestor chain includes
341
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
342
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
341
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module1 ).should == true
342
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock06::Module2 ).should == true
343
343
  end
344
344
  end
345
345
  end
@@ -349,7 +349,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
349
349
  ####################################################
350
350
 
351
351
  it 'include other modules for any class this module or any including modules are included in, before this module or including module is included' do
352
- module ModuleCluster::Define::ClusterCascadesToModule::Mock07
352
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock07
353
353
  extend ::ModuleCluster::Define::ClusterCascadesToModule
354
354
  module Module1
355
355
  end
@@ -359,36 +359,36 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
359
359
  respond_to?( :append_features ).should == true
360
360
  module ModuleProof1
361
361
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock07
362
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == true
363
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == true
362
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == true
363
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == true
364
364
  eigenclass = class << self ; self ; end
365
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
366
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
365
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
366
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
367
367
  end
368
368
  class ClassProof
369
369
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock07
370
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
371
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
370
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
371
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
372
372
  eigenclass = class << self ; self ; end
373
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
374
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
373
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
374
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
375
375
  end
376
376
  module ModuleProof2
377
377
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::ModuleProof1
378
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == true
379
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == true
378
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == true
379
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == true
380
380
  eigenclass = class << self ; self ; end
381
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
382
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
381
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
382
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
383
383
  end
384
384
  class ClassProof2
385
385
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::ModuleProof1
386
386
  # true b/c of ancestor chain
387
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == true
388
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == true
387
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == true
388
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == true
389
389
  eigenclass = class << self ; self ; end
390
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
391
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
390
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module1 ).should == false
391
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock07::Module2 ).should == false
392
392
  end
393
393
  end
394
394
  end
@@ -398,7 +398,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
398
398
  ###################################################
399
399
 
400
400
  it 'extend other modules for any class this module or any including modules are included in, before this module or including module is included' do
401
- module ModuleCluster::Define::ClusterCascadesToModule::Mock08
401
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock08
402
402
  extend ::ModuleCluster::Define::ClusterCascadesToModule
403
403
  module Module1
404
404
  end
@@ -408,35 +408,35 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
408
408
  respond_to?( :append_features ).should == true
409
409
  module ModuleProof1
410
410
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock08
411
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
412
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
411
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
412
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
413
413
  eigenclass = class << self ; self ; end
414
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == true
415
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == true
414
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == true
415
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == true
416
416
  end
417
417
  class ClassProof
418
418
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock08
419
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
420
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
419
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
420
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
421
421
  eigenclass = class << self ; self ; end
422
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
423
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
422
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
423
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
424
424
  end
425
425
  module ModuleProof2
426
426
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::ModuleProof1
427
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
428
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
427
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
428
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
429
429
  eigenclass = class << self ; self ; end
430
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == true
431
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == true
430
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == true
431
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == true
432
432
  end
433
433
  class ClassProof2
434
434
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::ModuleProof1
435
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
436
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
435
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
436
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
437
437
  eigenclass = class << self ; self ; end
438
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
439
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
438
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module1 ).should == false
439
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock08::Module2 ).should == false
440
440
  end
441
441
  end
442
442
  end
@@ -446,7 +446,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
446
446
  ################################################################
447
447
 
448
448
  it 'include and extend other modules for any class this module or any including modules are included in, before this module or including module is included' do
449
- module ModuleCluster::Define::ClusterCascadesToModule::Mock09
449
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock09
450
450
  extend ::ModuleCluster::Define::ClusterCascadesToModule
451
451
  module Module1
452
452
  end
@@ -456,36 +456,36 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
456
456
  respond_to?( :append_features ).should == true
457
457
  module ModuleProof1
458
458
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock09
459
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
460
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
459
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
460
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
461
461
  eigenclass = class << self ; self ; end
462
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
463
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
462
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
463
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
464
464
  end
465
465
  class ClassProof
466
466
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock09
467
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == false
468
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == false
467
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == false
468
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == false
469
469
  eigenclass = class << self ; self ; end
470
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == false
471
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == false
470
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == false
471
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == false
472
472
  end
473
473
  module ModuleProof2
474
474
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::ModuleProof1
475
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
476
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
475
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
476
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
477
477
  eigenclass = class << self ; self ; end
478
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
479
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
478
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
479
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
480
480
  end
481
481
  class ClassProof2
482
482
  include ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::ModuleProof1
483
483
  # true b/c of ancestor chain
484
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
485
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
484
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == true
485
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == true
486
486
  eigenclass = class << self ; self ; end
487
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == false
488
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == false
487
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module1 ).should == false
488
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock09::Module2 ).should == false
489
489
  end
490
490
  end
491
491
  end
@@ -495,7 +495,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
495
495
  ###################################################
496
496
 
497
497
  it 'include other modules for any class this module or any including modules are included in, before this module is extended' do
498
- module ModuleCluster::Define::ClusterCascadesToModule::Mock10
498
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock10
499
499
  extend ::ModuleCluster::Define::ClusterCascadesToModule
500
500
  module Module1
501
501
  end
@@ -505,50 +505,50 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
505
505
  respond_to?( :extend_object ).should == true
506
506
  module ModuleProof1
507
507
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10
508
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
509
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
508
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
509
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
510
510
  eigenclass = class << self ; self ; end
511
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
512
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
511
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
512
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
513
513
  end
514
514
  class ClassProof
515
515
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10
516
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
517
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
516
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
517
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
518
518
  eigenclass = class << self ; self ; end
519
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
520
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
519
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
520
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
521
521
  end
522
522
  Object.new.instance_eval do
523
523
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10
524
524
  eigenclass = class << self ; self ; end
525
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
526
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
525
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
526
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
527
527
  end
528
528
  module ModuleProof2
529
529
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::ModuleProof1
530
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
531
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
530
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
531
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
532
532
  eigenclass = class << self ; self ; end
533
533
  # true because of ancestor chain
534
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
535
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
534
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
535
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
536
536
  end
537
537
  class ClassProof2
538
538
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::ModuleProof1
539
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
540
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
539
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == false
540
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == false
541
541
  eigenclass = class << self ; self ; end
542
542
  # true because of ancestor chain
543
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
544
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
543
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
544
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
545
545
  end
546
546
  Object.new.instance_eval do
547
547
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::ModuleProof1
548
548
  eigenclass = class << self ; self ; end
549
549
  # true because of ancestor chain
550
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
551
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
550
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module1 ).should == true
551
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock10::Module2 ).should == true
552
552
  end
553
553
  end
554
554
  end
@@ -558,7 +558,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
558
558
  ##################################################
559
559
 
560
560
  it 'extend other modules for any class this module or any including modules are included in, before this module is extended' do
561
- module ModuleCluster::Define::ClusterCascadesToModule::Mock11
561
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock11
562
562
  extend ::ModuleCluster::Define::ClusterCascadesToModule
563
563
  module Module1
564
564
  end
@@ -568,47 +568,47 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
568
568
  respond_to?( :extend_object ).should == true
569
569
  module ModuleProof1
570
570
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11
571
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
572
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
571
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
572
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
573
573
  eigenclass = class << self ; self ; end
574
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == true
575
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == true
574
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == true
575
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == true
576
576
  end
577
577
  class ClassProof
578
578
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11
579
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
580
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
579
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
580
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
581
581
  eigenclass = class << self ; self ; end
582
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
583
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
582
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
583
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
584
584
  end
585
585
  Object.new.instance_eval do
586
586
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11
587
587
  eigenclass = class << self ; self ; end
588
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
589
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
588
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
589
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
590
590
  end
591
591
  module ModuleProof2
592
592
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::ModuleProof1
593
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
594
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
593
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
594
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
595
595
  eigenclass = class << self ; self ; end
596
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == true
597
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == true
596
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == true
597
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == true
598
598
  end
599
599
  class ClassProof2
600
600
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::ModuleProof1
601
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
602
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
601
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
602
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
603
603
  eigenclass = class << self ; self ; end
604
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
605
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
604
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
605
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
606
606
  end
607
607
  Object.new.instance_eval do
608
608
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::ModuleProof1
609
609
  eigenclass = class << self ; self ; end
610
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
611
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
610
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module1 ).should == false
611
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock11::Module2 ).should == false
612
612
  end
613
613
  end
614
614
  end
@@ -618,7 +618,7 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
618
618
  ###############################################################
619
619
 
620
620
  it 'include and extend other modules for any class this module or any including modules are included in, before this module is extended' do
621
- module ModuleCluster::Define::ClusterCascadesToModule::Mock12
621
+ module ::ModuleCluster::Define::ClusterCascadesToModule::Mock12
622
622
  extend ::ModuleCluster::Define::ClusterCascadesToModule
623
623
  module Module1
624
624
  end
@@ -628,49 +628,49 @@ describe ModuleCluster::Define::ClusterCascadesToModule do
628
628
  respond_to?( :extend_object ).should == true
629
629
  module ModuleProof1
630
630
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12
631
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
632
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
631
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
632
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
633
633
  eigenclass = class << self ; self ; end
634
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
635
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
634
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
635
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
636
636
  end
637
637
  class ClassProof
638
638
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12
639
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
640
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
639
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
640
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
641
641
  eigenclass = class << self ; self ; end
642
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
643
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
642
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
643
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
644
644
  end
645
645
  Object.new.instance_eval do
646
646
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12
647
647
  eigenclass = class << self ; self ; end
648
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
649
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
648
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
649
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
650
650
  end
651
651
  module ModuleProof2
652
652
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::ModuleProof1
653
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
654
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
653
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
654
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
655
655
  eigenclass = class << self ; self ; end
656
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
657
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
656
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
657
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
658
658
  end
659
659
  class ClassProof2
660
660
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::ModuleProof1
661
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
662
- ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
661
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == false
662
+ ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == false
663
663
  eigenclass = class << self ; self ; end
664
664
  # true because of ancestor chain
665
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
666
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
665
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
666
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
667
667
  end
668
668
  Object.new.instance_eval do
669
669
  extend ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::ModuleProof1
670
670
  eigenclass = class << self ; self ; end
671
671
  # true because of ancestor chain
672
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
673
- eigenclass.ancestors.include?( ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
672
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module1 ).should == true
673
+ eigenclass.ancestors.include?( ::ModuleCluster::Define::ClusterCascadesToModule::Mock12::Module2 ).should == true
674
674
  end
675
675
  end
676
676
  end