diff options
author | Azul <azul@leap.se> | 2013-09-18 12:47:42 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-09-18 12:47:42 +0200 |
commit | c934787aa13977c3bb13155745f51ea71728d175 (patch) | |
tree | 7c2e567e0fded8dfd89b4c49c2bb13217a007fa6 /billing/test/support | |
parent | 0c687f4ad5193bbf5b8429a47140e45db408fc80 (diff) |
working integration test
Diffstat (limited to 'billing/test/support')
-rw-r--r-- | billing/test/support/customer_test_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/billing/test/support/customer_test_helper.rb b/billing/test/support/customer_test_helper.rb index ad72edd..adac00a 100644 --- a/billing/test/support/customer_test_helper.rb +++ b/billing/test/support/customer_test_helper.rb @@ -2,7 +2,9 @@ module CustomerTestHelper def stub_customer(user = nil) user ||= find_record :user - customer = stub_record :customer_with_payment_info, user: user + customer = stub_record :customer_with_payment_info, + user: user, + user_id: user.id Customer.stubs(:find_by_user_id).with(user.id).returns(customer) return customer end |