Extract Capybara setup to a helper file

Any Capybara-related test setup has been moved to `capybara_helper.rb`.
Now we just must require this file in order to run tests with Capybara.

I also moved the `#console_log` helper to this file to showcase how
other global helper methods could be defined in this file.
This commit is contained in:
benjamin wil
2022-08-14 14:25:01 -07:00
committed by benjamin wil
parent ce85301e70
commit f15a72ce05
3 changed files with 27 additions and 12 deletions
-1
View File
@@ -32,7 +32,6 @@ ENV['RACK_ENV'] = 'test'
require 'gollum'
require 'gollum/app'
CAPYBARA_DRIVER = ENV['CI'] ? :selenium_chrome_headless : ENV.fetch('CAPYBARA_DRIVER', :selenium_chrome).to_sym
# Disable the metadata feature
$METADATA = false