Ver código fonte

pass on AR 3.0.x

Eric Ponce 11 anos atrás
pai
commit
5851187be0

+ 1 - 1
lib/shopify_api/resources/recurring_application_charge.rb

@@ -20,4 +20,4 @@ module ShopifyAPI
       load_attributes_from_response(post(:activate))
     end
   end
-end
+end

+ 1 - 1
test/fixtures/recurring_application_charge.json

@@ -17,4 +17,4 @@
     "decorated_return_url": "http://super-duper.shopifyapps.com?charge_id=654381177",
     "confirmation_url": "http://apple.myshopify.com/admin/charges/654381177/confirm_recurring_application_charge?signature=BAhpBHkQASc%3D--419fc7424f8c290ac2b21b9004ed223e35b52164"
   }
-}
+}

+ 1 - 1
test/fixtures/recurring_application_charges.json

@@ -103,4 +103,4 @@
       "decorated_return_url": "http://yourapp.com?charge_id=455696195"
     }
   ]
-}
+}

+ 3 - 3
test/recurring_application_charge_test.rb

@@ -85,7 +85,7 @@ class RecurringApplicationChargeTest < Test::Unit::TestCase
 
     charge = ShopifyAPI::RecurringApplicationCharge.accepted
 
-    assert_equal true, charge.last.activate
+    assert charge.last.activate
   end
 
   def test_cancel_recurring_application_charge
@@ -93,7 +93,7 @@ class RecurringApplicationChargeTest < Test::Unit::TestCase
     fake "recurring_application_charges/455696194", :method => :delete, :status => 200, :body => "{}"
 
     charge = ShopifyAPI::RecurringApplicationCharge.current
-    assert_equal true, charge.cancel
+    assert charge.cancel
   end
 
   def test_no_recurring_application_charge_found
@@ -104,4 +104,4 @@ class RecurringApplicationChargeTest < Test::Unit::TestCase
     assert_equal [], ShopifyAPI::RecurringApplicationCharge.pending
   end
 
-end
+end