Skip to content

Commit

Permalink
Use consistent style in prepend specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jemc committed Apr 30, 2015
1 parent d30a820 commit cebed46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/ruby/core/module/prepend_spec.rb
Expand Up @@ -82,13 +82,13 @@ def self.prepend_features(mod)

it "reports the prepended module as the method owner" do
m = Module.new { def meth; end }
c = Class.new { def meth; end; prepend m }
c = Class.new { def meth; end; prepend(m) }
c.new.method(:meth).owner.should == m
end

it "reports the prepended module as the unbound method owner" do
m = Module.new { def meth; end }
c = Class.new { def meth; end; prepend m }
c = Class.new { def meth; end; prepend(m) }
c.instance_method(:meth).owner.should == m
end

Expand Down

0 comments on commit cebed46

Please sign in to comment.