Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I disagree - it's common Ruby style to accept the falsy value of nil and the truthy value of everything else. The
!!
pattern is considered by many to be a code smell. I refactored my version of the solution to not use that at all; as you pointed out it doesn't have any bearing on the test results.I do think the kata should be adjusted so that either the acceptance tests explicitly require boolean values, or the initial method does not have the
!!
. I'd vote for the latter, but either adjustment would help the consistency of the kata.