summaryrefslogtreecommitdiff
path: root/billing/test/integration/admin_customer_test.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-04-11 09:31:16 +0200
committerAzul <azul@leap.se>2014-04-11 09:31:16 +0200
commit361cdbbacc57b17c198489238282e786cc827efa (patch)
treea81ba4728b8860b63c563795813a2d902490c0dd /billing/test/integration/admin_customer_test.rb
parentc6a22158c5bfb18fcd83434f92c55436fb15af23 (diff)
make sure billing tests do not interfere with others
they are still broken though.
Diffstat (limited to 'billing/test/integration/admin_customer_test.rb')
-rw-r--r--billing/test/integration/admin_customer_test.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/billing/test/integration/admin_customer_test.rb b/billing/test/integration/admin_customer_test.rb
index 1b9953f..df92a0d 100644
--- a/billing/test/integration/admin_customer_test.rb
+++ b/billing/test/integration/admin_customer_test.rb
@@ -1,19 +1,14 @@
require 'test_helper'
require 'fake_braintree'
-require 'capybara/rails'
-class AdminCustomerTest < ActionDispatch::IntegrationTest
- include Warden::Test::Helpers
- include Capybara::DSL
+class AdminCustomerTest < BraintreeIntegrationTest
setup do
- Warden.test_mode!
@admin = User.find_by_login('admin') || FactoryGirl.create(:user, login: 'admin')
@user = FactoryGirl.create(:user)
end
teardown do
- Warden.test_reset!
@user.destroy if @user
@admin.destroy if @admin
end