Commit 74a1904
committed
Actually verify that non-string to_s is discarded
The old spec only verified that a dynamic string would be
successfully created when an interpolated object returned a
non-string value from to_s. This enhances the spec to also verify
that the non-string value will be discarded in favor of the generic
"hashy" inspect string.1 parent a18e040 commit 74a1904
1 file changed
Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
| |||
0 commit comments