Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add spec for ancestors n the case of prepend

  • Loading branch information...
commit 35b3311d7ddbefe38277833662aaeb22d68eb189 1 parent af3cbed
@LTe authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 spec/ruby/core/module/ancestors_spec.rb
View
10 spec/ruby/core/module/ancestors_spec.rb
@@ -17,4 +17,14 @@ class << ModuleSpecs::Child; self; end.ancestors.should include(ModuleSpecs::Int
it "has 1 entry per module or class" do
ModuleSpecs::Parent.ancestors.should == ModuleSpecs::Parent.ancestors.uniq
end
+
+ ruby_version_is "2.0" do
+ ModuleSpecs::PrependModules::C1.ancestors.should include(
+ ModuleSpecs::PrependModules::M2, ModuleSpecs::PrependModules::M3,
+ ModuleSpecs::PrependModules::C1, ModuleSpecs::PrependModules::M4,
+ ModuleSpecs::PrependModules::M1, ModuleSpecs::PrependModules::C0,
+ ModuleSpecs::PrependModules::M0, ModuleSpecs::PrependModules::C,
+ Object, Kernel, BasicObject
+ )
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.