Skip to content

Commit 9e33b98

Browse files
committedOct 29, 2013
Add Hash#inspect and #to_s to list of hash specs to run
1 parent f44f3b3 commit 9e33b98

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎spec/filters/bugs/hash.rb

+4
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
fails "Hash#initialize_copy tries to convert the passed argument to a hash using #to_hash"
9191
fails "Hash#initialize_copy replaces the contents of self with other"
9292

93+
fails "Hash#inspect handles hashes with recursive values"
94+
9395
fails "Hash#keep_if raises an RuntimeError if called on a frozen instance"
9496

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

143+
fails "Hash#to_s handles hashes with recursive values"
144+
141145
fails "Hash#update raises a RuntimeError on a frozen instance that would not be modified"
142146
fails "Hash#update checks frozen status before coercing an object with #to_hash"
143147
fails "Hash#update raises a RuntimeError on a frozen instance that is modified"

‎spec/rubyspecs

+2
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ core/hash/indexes_spec
176176
core/hash/indices_spec
177177
core/hash/initialize_copy_spec
178178
core/hash/initialize_spec
179+
core/hash/inspect_spec
179180
core/hash/invert_spec
180181
core/hash/keep_if_spec
181182
core/hash/key_spec
@@ -191,6 +192,7 @@ core/hash/select_spec
191192
core/hash/shift_spec
192193
core/hash/size_spec
193194
core/hash/to_a_spec
195+
core/hash/to_s_spec
194196
core/hash/update_spec
195197
core/hash/value_spec
196198
core/hash/values_at_spec

0 commit comments

Comments
 (0)
Please sign in to comment.