summaryrefslogtreecommitdiff
path: root/billing/test/functional/payments_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'billing/test/functional/payments_controller_test.rb')
-rw-r--r--billing/test/functional/payments_controller_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/billing/test/functional/payments_controller_test.rb b/billing/test/functional/payments_controller_test.rb
index 8f3bfe7..055a990 100644
--- a/billing/test/functional/payments_controller_test.rb
+++ b/billing/test/functional/payments_controller_test.rb
@@ -17,7 +17,9 @@ class PaymentsControllerTest < ActionController::TestCase
end
test "payment when authenticated as customer" do
- customer = FactoryGirl.create :customer_with_payment_info
+ user = find_record :user
+ customer = stub_record :customer_with_payment_info, user: user
+ Customer.stubs(:find_by_user_id).with(user.id).returns(customer)
login customer.user
get :new
assert_not_nil assigns(:tr_data)