diff options
| author | Teddy Wing | 2015-12-08 01:38:50 -0500 | 
|---|---|---|
| committer | Teddy Wing | 2015-12-08 01:38:50 -0500 | 
| commit | f3a35d4ff0606ea59aecd67c5daa01ccf51b01a8 (patch) | |
| tree | 12c31a367ca070ddab24f42438c379d91ebcc1ff /test/integration_test_helper.rb | |
| parent | f6b6a0ddd8cb1bf45190a8f204b0903da8e9ba40 (diff) | |
| download | Ruby-Web-Sessions-Exercise-f3a35d4ff0606ea59aecd67c5daa01ccf51b01a8.tar.bz2 | |
Add test/ from branch 'solution'
Diffstat (limited to 'test/integration_test_helper.rb')
| -rw-r--r-- | test/integration_test_helper.rb | 18 | 
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 | 
