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.
There are no order by requirements in this kata...
expected: [{:location=>"US", :id=>1, :name=>"Awesome Rubber Bottle", :price=>50.07, :card_name=>"Toni Senger II...ber=>"1234-2121-1221-1211", :transaction_date=>#<Date: 2012-07-29 ((2456138j,0s,0n),+0s,2299161j)>}]
got: [{:location=>"US", :id=>1, :name=>"Awesome Rubber Bottle", :price=>50.07, :card_name=>"Toni Senger II...ber=>"1234-2121-1221-1211", :transaction_date=>#<Date: 2016-07-24 ((2457594j,0s,0n),+0s,2299161j)>}]
That is the problem. We get 1 failure while submitting. There is no requirement for order by and I have tried both ASC and DESC, I get a different failure each time. Many of these US/EU sales based DB problems are poorly specified. There are hidden ordering requirements every where.
please provide more info when raising an issue, thanks :)
I don't understand your problem?
Tests are outdated, card_number and transaction_date are not the same anymore:
expected: [{:location=>"US", :id=>3, :name=>"Rustic...", :price=>93.43, :card_number=>"1234-2121-1221-1211",:transaction_date=>#<Date: 2013-02-25 ((2456349j,0s,0n),+0s,2299161j)>}]
got: [{:location=>"US", :id=>3, :name=>"Rustic...", :price=>93.43, :card_number=>"1212-1221-1121-1234",:transaction_date=>#<Date: 2016-03-08 ((2457456j,0s,0n),+0s,2299161j)>}]
realy nice and clean solution