Skip to content

Commit 8005eef

Browse files
chrisseatoneregon
authored andcommitted
Spec for rb_respond_to with primitives
1 parent aae2a4f commit 8005eef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/ruby/optional/capi/object_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ def six(a, b, *c, &d); end
110110
@o.rb_respond_to(ObjectTest.new, :foo).should == true
111111
@o.rb_respond_to(ObjectTest.new, :bar).should == false
112112
end
113+
114+
it "can be used with primitives" do
115+
@o.rb_respond_to(true, :object_id).should == true
116+
@o.rb_respond_to(14, :succ).should == true
117+
end
113118
end
114119

115120
describe "rb_obj_respond_to" do

0 commit comments

Comments
 (0)