|
|
@ -6,6 +6,10 @@ require File.expand_path("../config/environment", __dir__) |
|
|
|
abort("The Rails environment is running in production mode!") if Rails.env.production? |
|
|
|
abort("The Rails environment is running in production mode!") if Rails.env.production? |
|
|
|
require "rspec/rails" |
|
|
|
require "rspec/rails" |
|
|
|
require "capybara/rspec" |
|
|
|
require "capybara/rspec" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Uncomment to run `js: true specs` with visible browser interaction |
|
|
|
|
|
|
|
Capybara.javascript_driver = :selenium_headless |
|
|
|
|
|
|
|
|
|
|
|
# Add additional requires below this line. Rails is not loaded until this point! |
|
|
|
# Add additional requires below this line. Rails is not loaded until this point! |
|
|
|
|
|
|
|
|
|
|
|
# Requires supporting ruby files with custom matchers and macros, etc, in |
|
|
|
# Requires supporting ruby files with custom matchers and macros, etc, in |
|
|
@ -62,4 +66,8 @@ RSpec.configure do |config| |
|
|
|
config.filter_rails_from_backtrace! |
|
|
|
config.filter_rails_from_backtrace! |
|
|
|
# arbitrary gems may also be filtered via: |
|
|
|
# arbitrary gems may also be filtered via: |
|
|
|
# config.filter_gems_from_backtrace("gem name") |
|
|
|
# config.filter_gems_from_backtrace("gem name") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Silence capybara logging puma start up messages to stdout on first js: true |
|
|
|
|
|
|
|
# spec |
|
|
|
|
|
|
|
Capybara.server = :puma, { Silent: true } |
|
|
|
end |
|
|
|
end |
|
|
|