We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e51098f commit 5e500c8Copy full SHA for 5e500c8
spec/ruby/core/unboundmethod/bind_spec.rb
@@ -32,6 +32,10 @@
32
@child2_um.bind(UnboundMethodSpecs::Child1.new).should be_kind_of(Method)
33
end
34
35
+ it "allows binding a Kernel method retrieved from Object on BasicObject" do
36
+ Object.instance_method(:instance_of?).bind(BasicObject.new).call(BasicObject).should == true
37
+ end
38
+
39
it "returns a callable method" do
40
obj = UnboundMethodSpecs::Methods.new
41
@normal_um.bind(obj).call.should == obj.foo
0 commit comments