summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/hash_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/optional/capi/hash_spec.rb')
-rw-r--r--spec/ruby/optional/capi/hash_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/ruby/optional/capi/hash_spec.rb b/spec/ruby/optional/capi/hash_spec.rb
index f584e73006..92dc62d55b 100644
--- a/spec/ruby/optional/capi/hash_spec.rb
+++ b/spec/ruby/optional/capi/hash_spec.rb
@@ -211,6 +211,11 @@ describe "C-API Hash function" do
@s.rb_hash_lookup2(hash, :chunky, 10).should == 10
end
+
+ it "returns undefined if that is the default value specified" do
+ hsh = Hash.new(0)
+ @s.rb_hash_lookup2_default_undef(hsh, :chunky).should be_true
+ end
end
end