summaryrefslogtreecommitdiff
path: root/engines/billing/test/support/braintree_integration_test.rb
blob: 976c5a2e87ee1011923586586f1ee2d2807b97bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'capybara/rails'
# require 'fake_braintree' - messes up other integration tests
require 'braintree_test_app'

class BraintreeIntegrationTest < BrowserIntegrationTest
  include Warden::Test::Helpers

  setup do
    Warden.test_mode!
    Rails.application.config.middleware.use BraintreeTestApp
  end

  teardown do
    Warden.test_reset!
    Rails.application.config.middleware.delete "BraintreeTestApp"
  end

end