Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubinius/rubinius
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e7cd02e5660d
Choose a base ref
...
head repository: rubinius/rubinius
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d929857ffb2a
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Mar 5, 2015

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    708e4ea View commit details
  2. Merge pull request #3345 from ruipserra/2.2

    Add specs for Binding#receiver
    Yorick Peterse committed Mar 5, 2015
    Copy the full SHA
    d929857 View commit details
Showing with 12 additions and 0 deletions.
  1. +11 −0 spec/ruby/core/binding/receiver_spec.rb
  2. +1 −0 spec/tags/ruby/core/binding/receiver_tags.txt
11 changes: 11 additions & 0 deletions spec/ruby/core/binding/receiver_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)

describe "Binding#receiver" do
it "returns the object to which binding is bound" do
obj = BindingSpecs::Demo.new(1)
obj.get_binding.receiver.should == obj

binding.receiver.should == self
end
end
1 change: 1 addition & 0 deletions spec/tags/ruby/core/binding/receiver_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Binding#receiver returns the object to which binding is bound