Skip to content

Commit

Permalink
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/filters/bugs/hash.rb
Original file line number Diff line number Diff line change
@@ -90,6 +90,8 @@
fails "Hash#initialize_copy tries to convert the passed argument to a hash using #to_hash"
fails "Hash#initialize_copy replaces the contents of self with other"

fails "Hash#inspect handles hashes with recursive values"

fails "Hash#keep_if raises an RuntimeError if called on a frozen instance"

fails "Hash#key? compares keys with the same #hash value via #eql?"
@@ -138,6 +140,8 @@
fails "Hash#shift returns (computed) default for empty hashes"
fails "Hash#shift raises a RuntimeError if called on a frozen instance"

fails "Hash#to_s handles hashes with recursive values"

fails "Hash#update raises a RuntimeError on a frozen instance that would not be modified"
fails "Hash#update checks frozen status before coercing an object with #to_hash"
fails "Hash#update raises a RuntimeError on a frozen instance that is modified"
2 changes: 2 additions & 0 deletions spec/rubyspecs
Original file line number Diff line number Diff line change
@@ -176,6 +176,7 @@ core/hash/indexes_spec
core/hash/indices_spec
core/hash/initialize_copy_spec
core/hash/initialize_spec
core/hash/inspect_spec
core/hash/invert_spec
core/hash/keep_if_spec
core/hash/key_spec
@@ -191,6 +192,7 @@ core/hash/select_spec
core/hash/shift_spec
core/hash/size_spec
core/hash/to_a_spec
core/hash/to_s_spec
core/hash/update_spec
core/hash/value_spec
core/hash/values_at_spec

0 comments on commit 9e33b98

Please sign in to comment.