aboutsummaryrefslogtreecommitdiffstats
path: root/test/integration_test_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration_test_helper.rb')
-rw-r--r--test/integration_test_helper.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integration_test_helper.rb b/test/integration_test_helper.rb
new file mode 100644
index 0000000..609c08b
--- /dev/null
+++ b/test/integration_test_helper.rb
@@ -0,0 +1,18 @@
+ENV['RACK_ENV'] = 'test'
+
+require 'minitest/autorun'
+require 'capybara'
+
+require 'app'
+
+
+class CapybaraTestCase < Minitest::Unit::TestCase
+ include Capybara::DSL
+
+ def teardown
+ Capybara.reset_sessions!
+ Capybara.use_default_driver
+ end
+end
+
+Capybara.app = Sinatra::Application.new