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.
description says: "Date parameter could be a string or a Date object."
description says: "Date parameter could be a string or a Date object."
For all those who get an error 'NoMethodError...' please note that kata description says: "Date parameter could be a string or a Date object." Good luck.
Hi LogaJ, you shouldn't make any assumptions, because kata description clearly states: "Date parameter could be a string or a Date object."
I believe the specs have something wrong ... Can't understand why my codes failed!!!
It looks like your code is minipulating the original instances and changing their values around, which was causing the specs to act weird. I've updated the kata to include an initial test case example, so that you can see how the tests are setup.
Wow, my long winded solution is so unnessary! As soon as I saw this it was so obvious!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This is strange. The tests seem to be OK but that error message definitely is not correct. Would you mind adding your solution here and marking it as a spoiler?
Something weird is going on. Using the example expected output in my unsubmitted test cases passes, but when I submit my final answer I get the following error:
Test::Error: Expected: [{:id=>2}, {:id=>1}], instead got: [{:id=>1}, {:id=>2}]
The expectation is incorrect, the expectatition should read:
[{:id=>1}, {:id=>2}]
and rather than[{:id=>2}, {:id=>1}]