edgecase/ruby_koans_online — Issue #8: about_classes.rb
Author: mskwarcan
Created: 2012-03-07 22:15:14+00:00
State: open

Class Dog7 has a blank to_s method. There is an input field there that is hidden in the browser. By leaving it blank, the test automatically passes.

On the last test:
array = [1,2,3]
array.to_s = "123" in ruby 1.8.7
array.to_s = "[1,2,3}" in ruby 1.9.2

So maybe a message alerting them of the change because it's expecting "123"?

test_to_s_is_used_in_string_interpolation turns red if to_s is left blank, but doesn't output and error message if to_s is blank