Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Abstract some more.

  • Loading branch information...
commit cacb537a45ca1003f3b54ab7f0c995c2517911c8 1 parent ae86ebe
@gabebw gabebw authored
Showing with 10 additions and 2 deletions.
  1. +10 −2 lib/fake_braintree/customer.rb
View
12 lib/fake_braintree/customer.rb
@@ -30,8 +30,8 @@ def update
end
def delete
- FakeBraintree.registry.customers[existing_customer_id] = nil
- gzipped_response(200, '')
+ delete_customer_with_id(existing_customer_id)
+ deletion_response
end
def customer_hash
@@ -159,5 +159,13 @@ def credit_card_expiration_month
def credit_card_expiration_year
credit_card_expiration_date[1]
end
+
+ def deletion_response
+ gzipped_response(200, '')
+ end
+
+ def delete_customer_with_id(id)
+ FakeBraintree.registry.customers[id] = nil
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.