Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix lying method name.

  • Loading branch information...
commit 99284367aff80498c19a5bdb06996ebbbf0b4fbf 1 parent 94cca24
@gabebw gabebw authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/fake_braintree/customer.rb
View
4 lib/fake_braintree/customer.rb
@@ -41,7 +41,7 @@ def delete
def customer_hash
hash = @customer_hash.dup
hash["id"] ||= create_id
- hash["credit_cards"] = generate_credit_card_hash_from(hash["credit_card"])
+ hash["credit_cards"] = generate_credit_cards_from(hash["credit_card"])
hash
end
@@ -99,7 +99,7 @@ def add_credit_card_to_registry(new_credit_card_hash)
FakeBraintree.registry.credit_cards[token] = new_credit_card_hash
end
- def generate_credit_card_hash_from(new_credit_card_hash)
+ def generate_credit_cards_from(new_credit_card_hash)
if new_credit_card_hash.present? && new_credit_card_hash.is_a?(Hash)
new_credit_card_hash["last_4"] = new_credit_card_hash["number"][-4..-1]
new_credit_card_hash["token"] = credit_card_token(new_credit_card_hash)
Please sign in to comment.
Something went wrong with that request. Please try again.