Created
June 2, 2014 06:28
-
-
Save soutaro/fc2e76d79711b424ab1d to your computer and use it in GitHub Desktop.
エラーの例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Failure: | |
JsonIO::API3::Form::CheckoutTest#test_update_checkout_from_open_to_close [/Users/soutaro/src/ubiregi-server/test/unit/json_io/api3/form/checkout_test.rb:342]: | |
=> {:id=>76, | |
:guid=>"checkout_guid_1", | |
:account_id=>1743, | |
:paid_at=>2013-09-01 13:05:00 UTC, | |
:closed_at=>Sun, 01 Sep 2013 22:05:00 JST +09:00, | |
:deleted_at=>nil, | |
:created_at=>2014-06-02 06:26:38 UTC, | |
:updated_at=>2014-06-02 06:26:38 UTC, | |
:price=>#<BigDecimal:7fa66c624c00,'0.525E3',9(18)>, | |
:change=>300, | |
:cashier_id=>5230, | |
:customers_count=>0, | |
:payments=> | |
[{:id=>:_, :payment_type_id=>10385, :amount=>1000, :guid=>"payment_guid_1"}], | |
:items=> | |
[{:id=>72, | |
:guid=>"item_guid_1", | |
:menu_item_id=>20348, | |
:count=>3, | |
:sales=>#<BigDecimal:7fa66c4ce388,'0.1E4',9(18)>, | |
:tax=>#<BigDecimal:7fa66c4ce310,'0.5E2',9(18)>, | |
:discount_sales=>#<BigDecimal:7fa66c4ce298,'0.5E3',9(18)>, | |
:discount_tax=>#<BigDecimal:7fa66c4ce220,'0.25E2',9(18)>}], | |
:table_ids=>[3391, 3392], | |
:customer_tag_ids=>[10158, 10161], | |
:modifier=>#<BigDecimal:7fa66c624e58,'0.0',9(18)>, | |
:status=>"close", | |
:sales_date=>Sun, 01 Sep 2013, | |
:device_id=>"da3790b0-ea1e-11e3-922e-2258cfc4eeb2"} | |
=> {:id=>76, | |
:guid=>"checkout_guid_1", | |
:account_id=>1743, | |
:paid_at=>Sun, 01 Sep 2013 22:05:00 JST +09:00, | |
:closed_at=>Sun, 01 Sep 2013 22:05:00 JST +09:00, | |
:deleted_at=>nil, | |
:created_at=>2014-06-02 06:26:38 UTC, | |
:updated_at=>2014-06-02 06:26:38 UTC, | |
:price=>#<BigDecimal:7fa66c624c00,'0.525E3',9(18)>, | |
:change=>#<BigDecimal:7fa66c624b88,'0.3E3',9(18)>, | |
:cashier_id=>5230, | |
:customers_count=>0, | |
:payments=> | |
[{:id=>72, | |
:guid=>"payment_guid_1", | |
:payment_type_id=>10385, | |
:amount=>#<BigDecimal:7fa66c4c7dd0,'0.1E4',9(18)>, | |
:payment_annotation=>nil}], | |
:items=> | |
[{:id=>72, | |
:guid=>"item_guid_1", | |
:menu_item_id=>20348, | |
:count=>3, | |
:sales=>#<BigDecimal:7fa66c4ce388,'0.1E4',9(18)>, | |
:tax=>#<BigDecimal:7fa66c4ce310,'0.5E2',9(18)>, | |
:discount_sales=>#<BigDecimal:7fa66c4ce298,'0.5E3',9(18)>, | |
:discount_tax=>#<BigDecimal:7fa66c4ce220,'0.25E2',9(18)>}], | |
:table_ids=>[3391, 3392], | |
:customer_tag_ids=>[10158, 10161], | |
:modifier=>#<BigDecimal:7fa66c624e58,'0.0',9(18)>, | |
:status=>"close", | |
:sales_date=>Sun, 01 Sep 2013, | |
:device_id=>"da3790b0-ea1e-11e3-922e-2258cfc4eeb2"} | |
Could not find a solution of equation at it[:payments][0].keys.sort. | |
=> [:amount, :guid, :id, :payment_type_id] == [:amount, :guid, :id, :payment_annotation, :payment_type_id] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment