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.
Very smart!
Yes, I just updated the phrase of the wording in the description. Hope it's more clear now.
Fow others who run into this (and maybe to be added to the spec): if both string and symbol keys are present, only update the symbol key.
I'm running into this same issue. Were you able to figure it out? This kata appears to have some serious issues in terms of unclear specifications.
I have no idea what am doing wrong. The last test always fails, but
I think my solution managed to update the both version (the string and the symbol as well).
I use
p
method to inspect theself
:{:enabled=>nil, "enabled"=>true}
{:enabled=>false, "enabled"=>false}
That seems just right to me, but the test constantly fails:
Test Failed: Should update key :enabled even if it's 'nil'