You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec for interporation when Object#to_s did not return a String was confusing the default representation of an arbitrary object and Object#inspect.
Copy file name to clipboardExpand all lines: language/string_spec.rb
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -150,12 +150,13 @@
150
150
"#{obj}".should == '42'
151
151
end
152
152
153
-
it"interpolates the return value of Object#inspect, without ivars, if Object#to_s does not return a String instance"do
153
+
it"interpolates an implementation depended representation of an object if the object does not return a String for #to_s and the representation of the object is not empty"do
0 commit comments