Ad
  • Custom User Avatar

    There are no order by requirements in this kata...

  • Custom User Avatar

    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.

  • Custom User Avatar

    please provide more info when raising an issue, thanks :)

  • Custom User Avatar

    I don't understand your problem?

  • Custom User Avatar

    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)>}]

  • Custom User Avatar

    realy nice and clean solution