|
7 | 7 | ModuleSpecs.ancestors.should == [ModuleSpecs]
|
8 | 8 | ModuleSpecs::Basic.ancestors.should == [ModuleSpecs::Basic]
|
9 | 9 | ModuleSpecs::Super.ancestors.should == [ModuleSpecs::Super, ModuleSpecs::Basic]
|
10 |
| - ModuleSpecs.without_test_modules(ModuleSpecs::Parent.ancestors).should == |
11 |
| - [ModuleSpecs::Parent, Object, Kernel, BasicObject] |
12 |
| - ModuleSpecs.without_test_modules(ModuleSpecs::Child.ancestors).should == |
13 |
| - [ModuleSpecs::Child, ModuleSpecs::Super, ModuleSpecs::Basic, ModuleSpecs::Parent, Object, Kernel, BasicObject] |
| 10 | + if Namespace.enabled? |
| 11 | + ModuleSpecs.without_test_modules(ModuleSpecs::Parent.ancestors).should == |
| 12 | + [ModuleSpecs::Parent, Object, Namespace::Loader, Kernel, BasicObject] |
| 13 | + ModuleSpecs.without_test_modules(ModuleSpecs::Child.ancestors).should == |
| 14 | + [ModuleSpecs::Child, ModuleSpecs::Super, ModuleSpecs::Basic, ModuleSpecs::Parent, Object, Namespace::Loader, Kernel, BasicObject] |
| 15 | + else |
| 16 | + ModuleSpecs.without_test_modules(ModuleSpecs::Parent.ancestors).should == |
| 17 | + [ModuleSpecs::Parent, Object, Kernel, BasicObject] |
| 18 | + ModuleSpecs.without_test_modules(ModuleSpecs::Child.ancestors).should == |
| 19 | + [ModuleSpecs::Child, ModuleSpecs::Super, ModuleSpecs::Basic, ModuleSpecs::Parent, Object, Kernel, BasicObject] |
| 20 | + end |
14 | 21 | end
|
15 | 22 |
|
16 | 23 | it "returns only modules and classes" do
|
|
0 commit comments