Skip to content

Commit

Permalink
Specify superclass in respect to prepend
Browse files Browse the repository at this point in the history
This was unspecified/recently merged to ruby/rubyspec. Rubinius does
the Right Thing ™️
  • Loading branch information
benlovell authored and Yorick Peterse committed Aug 25, 2015
1 parent 32b4d39 commit dbd33a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/ruby/core/module/prepend_spec.rb
Expand Up @@ -6,6 +6,10 @@
Module.should have_public_instance_method(:prepend, true)
end

it "does not affect the superclass" do
Class.new { prepend Module.new }.superclass.should == Object
end

it "calls #prepend_features(self) in reversed order on each module" do
ScratchPad.record []

Expand Down

0 comments on commit dbd33a6

Please sign in to comment.