Comment on Problems with the metakoans.rb Ruby Quiz by Ryan Kinderman

Tue, 06 Feb 2007 21:43:24 -0800

You are partly correct. The author has told me that he did in fact intend to assert the return value of the c.a= method, but since the return value is the last statement of the method, and since the a= method is probably only going to contain a single line of code, there isn't much to assert.

He did confirm that he forgot to add an assertion like c.a == 5.