Browse Source

Restore useless changes

Emmanuel Milou 6 years ago
parent
commit
bf799dc07f
3 changed files with 1 additions and 3 deletions
  1. 1 1
      test/checkouts_test.rb
  2. 0 1
      test/fixtures/payment.json
  3. 0 1
      test/fixtures/payments.json

+ 1 - 1
test/checkouts_test.rb

@@ -56,7 +56,7 @@ class CheckoutsTest < Test::Unit::TestCase
 
     fake "checkouts/#{@expected_checkout_id}/payments", method: :get, status: 202, body: load_fixture('payments')
 
-    assert_equal 10.00, checkout.payments.first.attributes['amount']
+    assert_equal 10.00, checkout.payments.first.amount
   end
 
   test ":shipping_rates returns shipping rates for a checkout" do

+ 0 - 1
test/fixtures/payment.json

@@ -1,6 +1,5 @@
 {
   "payment" : {
-    "id": "east-44a400ef20b36e38f10b882cb7260796",
     "amount": 10.00,
     "session_id": "east-44a400ef20b36e38f10b882cb7260796",
     "unique_token": "my-client-generated-idempotency-token"

+ 0 - 1
test/fixtures/payments.json

@@ -1,7 +1,6 @@
 {
   "payments" : [
     {
-      "id": "east-44a400ef20b36e38f10b882cb7260796",
       "amount": 10.00,
       "session_id": "east-44a400ef20b36e38f10b882cb7260796",
       "unique_token": "my-client-generated-idempotency-token"