Permalink
Browse files

Better naming.

  • Loading branch information...
1 parent e4cef67 commit 29429ef27f2c05bf3633605f04486638ab462165 Gabe Berke-Williams committed Jan 13, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/fake_braintree/customer.rb
@@ -50,8 +50,8 @@ def invalid?
credit_card_is_failure? || invalid_credit_card?
end
- def update_customer!(hash)
- customer_from_registry.merge!(hash)
+ def update_customer!(updates_hash)
+ customer_from_registry.merge!(updates_hash)
end
def customer_from_registry
@@ -63,7 +63,7 @@ def customer_exists_in_registry?
end
def credit_card_is_failure?
- has_credit_card? && FakeBraintree.failure?(credit_card_hash["number"])
+ has_credit_card? && FakeBraintree.failure?(credit_card_number)
end
def invalid_credit_card?

0 comments on commit 29429ef

Please sign in to comment.