Skip to content

Commit

Permalink
Add Hash#inspect and #to_s to list of hash specs to run
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 29, 2013
1 parent f44f3b3 commit 9e33b98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/filters/bugs/hash.rb
Expand Up @@ -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?"
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions spec/rubyspecs
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9e33b98

Please sign in to comment.