summaryrefslogtreecommitdiff
path: root/engines/billing/test/support/braintree_integration_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'engines/billing/test/support/braintree_integration_test.rb')
-rw-r--r--engines/billing/test/support/braintree_integration_test.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/engines/billing/test/support/braintree_integration_test.rb b/engines/billing/test/support/braintree_integration_test.rb
new file mode 100644
index 0000000..976c5a2
--- /dev/null
+++ b/engines/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