Sha256: 31f109acedffcb0b8023ab2228a06f5fa3600df35ca232725e77cf594f2e6703

Contents?: true

Size: 1.08 KB

Versions: 26

Compression:

Stored size: 1.08 KB

Contents

require 'minitest/autorun'
require 'minitest/reporters'
Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new

require 'active_support/core_ext/kernel/reporting'

Dir['test/support/**/*.rb'].each do |file|
  # strip ^test/ and .rb$
  file = file[5..-4]
  require_relative File.join('.', file)
end

GEM_PATH = File.expand_path('../', File.dirname(__FILE__))

#= Capybara
require 'capybara/cuprite'

browser_path = ENV['CHROMIUM_BIN'] || %w[
  /usr/bin/chromium-browser
  /snap/bin/chromium
  /Applications/Chromium.app/Contents/MacOS/Chromium
  /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
].find { |path| File.executable?(path) }

Capybara.register_driver :cuprite do |app|
  options = {
      window_size: [1280, 1024]
  }
  options[:browser_path] = browser_path if browser_path
  Capybara::Cuprite::Driver.new(app, options)
end

Capybara.configure do |config|
  config.server = :webrick
  config.app_host = 'http://localhost:7000'
  config.default_driver = :cuprite
  config.javascript_driver = :cuprite
  config.server_port = 7000
  config.default_max_wait_time = 10
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
bootstrap-4.6.2.1 test/test_helper.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bootstrap-4.6.2/test/test_helper.rb
bootstrap-5.2.2 test/test_helper.rb
bootstrap-5.2.1 test/test_helper.rb
bootstrap-4.6.2 test/test_helper.rb
nex-bootstrap-4.6.3 test/test_helper.rb
bootstrap-5.2.0 test/test_helper.rb
bootstrap-4.6.1 test/test_helper.rb
bootstrap-5.1.3 test/test_helper.rb
bootstrap-5.1.2 test/test_helper.rb
bootstrap-5.1.1 test/test_helper.rb
bootstrap-5.1.0 test/test_helper.rb
bootstrap-5.0.2 test/test_helper.rb
bootstrap-5.0.1 test/test_helper.rb
bootstrap-5.0.0 test/test_helper.rb
bootstrap-5.0.0.beta3 test/test_helper.rb
bootstrap-5.0.0.beta2 test/test_helper.rb
bootstrap-4.6.0 test/test_helper.rb
bootstrap-5.0.0.beta1 test/test_helper.rb
bootstrap-5.0.0.alpha3 test/test_helper.rb