summaryrefslogtreecommitdiff
path: root/test/support/browser_integration_test.rb
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2017-03-20 10:11:44 +0000
committerazul <azul@riseup.net>2017-03-20 10:11:44 +0000
commit15de288c3ca9bacc3d45675878ee7b8a2d9fc935 (patch)
treece9e94b23dc6b838a9e68a96b1d7cc811924f952 /test/support/browser_integration_test.rb
parentd7990f1b2af378ad071db6d94c5f95a50d6b7dcd (diff)
parent32b07d8c98719f3c52a3c5315da1f61c6e35cbd6 (diff)
Merge branch 'test/404-error-test' into 'master'
test: 404 response for missing key See merge request !18
Diffstat (limited to 'test/support/browser_integration_test.rb')
-rw-r--r--test/support/browser_integration_test.rb21
1 files changed, 3 insertions, 18 deletions
diff --git a/test/support/browser_integration_test.rb b/test/support/browser_integration_test.rb
index 1f5e3d2..c0fef0a 100644
--- a/test/support/browser_integration_test.rb
+++ b/test/support/browser_integration_test.rb
@@ -1,33 +1,18 @@
+require_relative 'rack_stack_test'
+
#
# BrowserIntegrationTest
#
# Use this class for capybara based integration tests for the ui.
#
-require 'capybara/rails'
-class BrowserIntegrationTest < ActionDispatch::IntegrationTest
+class BrowserIntegrationTest < RackStackTest
# let's use dom_id inorder to identify sections
include ActionView::RecordIdentifier
CONFIG_RU = (Rails.root + 'config.ru').to_s
OUTER_APP = Rack::Builder.parse_file(CONFIG_RU).first
- require 'capybara/poltergeist'
-
- Capybara.register_driver :rack_test do |app|
- Capybara::RackTest::Driver.new(app)
- end
-
- Capybara.register_driver :poltergeist do |app|
- Capybara::Poltergeist::Driver.new(app)
- end
-
- # this is integration testing. So let's make the whole
- # rack stack available...
- Capybara.app = OUTER_APP
- Capybara.run_server = true
- Capybara.app_host = 'http://lvh.me:3003'
- Capybara.server_port = 3003
Capybara.javascript_driver = :poltergeist
Capybara.default_max_wait_time = 5