summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/data_spec.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-18 23:19:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-18 23:19:38 +0000
commit24aa9ecc47e6e0ea8f7e52389b3942566e7d6642 (patch)
tree38bf6d7b3688181b76a322b77d28131893c50da9 /spec/ruby/optional/capi/data_spec.rb
parent7f4fbc1f09e04a6d3c8e28f20835ebd4c43ef998 (diff)
Removed unobservable behavior
The klass for Data_Wrap_Struct can be NULL, but it MUST NOT appear in the Ruby level. It is only for the C level implementation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/optional/capi/data_spec.rb')
-rw-r--r--spec/ruby/optional/capi/data_spec.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/spec/ruby/optional/capi/data_spec.rb b/spec/ruby/optional/capi/data_spec.rb
index 679c238804..b7d1b8fd65 100644
--- a/spec/ruby/optional/capi/data_spec.rb
+++ b/spec/ruby/optional/capi/data_spec.rb
@@ -19,11 +19,6 @@ describe "CApiWrappedStruct" do
@s.get_struct(a).should == 1024
end
- it "allows for using NULL as the klass for Data_Wrap_Struct" do
- a = @s.wrap_struct_null(1024)
- @s.get_struct(a).should == 1024
- end
-
describe "RDATA()" do
it "returns the struct data" do
a = @s.wrap_struct(1024)