summaryrefslogtreecommitdiff
path: root/billing/test/functional/customers_controller_test.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-07-02 12:52:16 +0200
committerAzul <azul@leap.se>2013-07-17 10:47:14 +0200
commit968448cea22364f1fd423cedc54cf6d8a0f2e09e (patch)
treec3d2f02ea7bf7b32dbabefd80800696e03105d7c /billing/test/functional/customers_controller_test.rb
parent5589ef858a19f1c46e7e8aa5b364914a5f14352a (diff)
billing: update customer records - do not create new ones
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