lib/fake_braintree/customer.rb in fake_braintree-0.5.0 vs lib/fake_braintree/customer.rb in fake_braintree-0.6.0
- old
+ new
@@ -48,10 +48,10 @@
def invalid?
credit_card_is_failure? || invalid_credit_card?
end
def create_customer_with(hash)
- FakeBraintree.registry.customers[hash['id']] = hash
+ FakeBraintree.registry.customers[hash['id'].to_s] = hash
end
def add_credit_card_to_registry(new_credit_card_hash)
token = new_credit_card_hash['token']
FakeBraintree.registry.credit_cards[token] = new_credit_card_hash