diff options
Diffstat (limited to 'spec/ruby/optional/capi/data_spec.rb')
-rw-r--r-- | spec/ruby/optional/capi/data_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/ruby/optional/capi/data_spec.rb b/spec/ruby/optional/capi/data_spec.rb index c03b863678..18c769332e 100644 --- a/spec/ruby/optional/capi/data_spec.rb +++ b/spec/ruby/optional/capi/data_spec.rb @@ -36,6 +36,13 @@ describe "CApiWrappedStruct" do end end + describe "rb_check_type" do + it "does not raise an exception when checking data objects" do + a = @s.wrap_struct(1024) + @s.rb_check_type(a, a).should == true + end + end + describe "DATA_PTR" do it "returns the struct data" do a = @s.wrap_struct(1024) |