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.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/ruby/optional/capi/hash_spec.rb b/spec/ruby/optional/capi/hash_spec.rb
index df2becb2b4..75f1978585 100644
--- a/spec/ruby/optional/capi/hash_spec.rb
+++ b/spec/ruby/optional/capi/hash_spec.rb
@@ -50,6 +50,14 @@ describe "C-API Hash function" do
end
end
+ describe "rb_ident_hash_new" do
+ it "returns a new compare by identity hash" do
+ result = @s.rb_ident_hash_new
+ result.should == {}
+ result.compare_by_identity?.should == true
+ end
+ end
+
describe "rb_hash_dup" do
it "returns a copy of the hash" do
hsh = {}