blob: 4bf5e7a7bd7d5d4bae237241b5abb763cdfd0a48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require_relative '../../spec_helper'
require_relative 'fixtures/classes'
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
|