summaryrefslogtreecommitdiff
path: root/billing/test/functional/customers_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'billing/test/functional/customers_controller_test.rb')
-rw-r--r--billing/test/functional/customers_controller_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/billing/test/functional/customers_controller_test.rb b/billing/test/functional/customers_controller_test.rb
index 45a14ed..58b6155 100644
--- a/billing/test/functional/customers_controller_test.rb
+++ b/billing/test/functional/customers_controller_test.rb
@@ -1,6 +1,8 @@
require 'test_helper'
+require 'fake_braintree'
class CustomersControllerTest < ActionController::TestCase
+ tests CustomerController
setup do
@user = FactoryGirl.create :user
@@ -43,7 +45,7 @@ class CustomersControllerTest < ActionController::TestCase
login @other_user
get :new
assert_response :redirect
- assert_equal edit_customer_url(@customer.braintree_customer_id), response.header['Location']
+ assert_equal edit_customer_url(@customer), response.header['Location']
end