From 968448cea22364f1fd423cedc54cf6d8a0f2e09e Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 2 Jul 2013 12:52:16 +0200 Subject: billing: update customer records - do not create new ones --- billing/test/functional/customers_controller_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'billing/test/functional/customers_controller_test.rb') 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 -- cgit v1.2.3