Skip to content

Commit f83d002

Browse files
mameandrykonchin
authored andcommitted
spec/ruby/core/module/ancestors_spec.rb: Add a guard for Namespace feat.
1 parent b09cc7c commit f83d002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/module/ancestors_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
ModuleSpecs.ancestors.should == [ModuleSpecs]
88
ModuleSpecs::Basic.ancestors.should == [ModuleSpecs::Basic]
99
ModuleSpecs::Super.ancestors.should == [ModuleSpecs::Super, ModuleSpecs::Basic]
10-
if Namespace.enabled?
10+
if defined?(Namespace) && Namespace.enabled?
1111
ModuleSpecs.without_test_modules(ModuleSpecs::Parent.ancestors).should ==
1212
[ModuleSpecs::Parent, Object, Namespace::Loader, Kernel, BasicObject]
1313
ModuleSpecs.without_test_modules(ModuleSpecs::Child.ancestors).should ==

0 commit comments

Comments
 (0)