Skip to content

Commit

Permalink
Better naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Jan 13, 2012
1 parent e4cef67 commit 29429ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/fake_braintree/customer.rb
Expand Up @@ -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
Expand All @@ -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?
Expand Down

0 comments on commit 29429ef

Please sign in to comment.