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.
CodeWars voters seem to heavily prefer clever one-liners over readability or performance. There might be a way to influence that in a better direction ("better" in the "actually being a developer" sense)
Another problem: The description is ambiguous, and the submission tests give no useful feedback for figuring out the issue. "Update whatever key is there, symbol or string" can be interpreted two ways. This is the way I read it, that was rejected:
This is the way that's actually accepted:
Regarding your tests: Semicolons at the end of Ruby lines are allowed, but not idiomatic (nor recommended).
Not only is || better by convention, it also binds higher, which will prevent you from having to put parentheses in all kinds of silly places that don't make sense for booleans but do make sense for flow control.
The first time I read it, I thought we were supposed to actually enumerate all the possible outcomes (and the function name itself says "all possible outcomes", not "count all possible outcomes"). This could use a rewrite, because enumerating them all is a bit more involved.