diff options
author | Azul <azul@leap.se> | 2014-04-11 09:31:16 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-04-11 09:31:16 +0200 |
commit | 361cdbbacc57b17c198489238282e786cc827efa (patch) | |
tree | a81ba4728b8860b63c563795813a2d902490c0dd /billing/test/support | |
parent | c6a22158c5bfb18fcd83434f92c55436fb15af23 (diff) |
make sure billing tests do not interfere with others
they are still broken though.
Diffstat (limited to 'billing/test/support')
-rw-r--r-- | billing/test/support/braintree_integration_test.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/billing/test/support/braintree_integration_test.rb b/billing/test/support/braintree_integration_test.rb new file mode 100644 index 0000000..976c5a2 --- /dev/null +++ b/billing/test/support/braintree_integration_test.rb @@ -0,0 +1,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 |