Sha256: 8bea1958e3a2a8d41a70226819a5f7fb5ebb76f1d6233c1cd02c04c9a122cad8

Contents?: true

Size: 1.1 KB

Versions: 17

Compression:

Stored size: 1.1 KB

Contents

ENV["RAILS_ENV"] ||= 'test'
require 'rsolr'
require 'engine_cart'
EngineCart.load_application!

require 'rspec/rails'
require 'capybara/rspec'
require 'selenium-webdriver'
require 'webdrivers'

Capybara.javascript_driver = :headless_chrome

Capybara.register_driver :headless_chrome do |app|
  Capybara::Selenium::Driver.load_selenium
  browser_options = ::Selenium::WebDriver::Chrome::Options.new.tap do |opts|
    opts.args << '--headless'
    opts.args << '--disable-gpu'
    opts.args << '--no-sandbox'
    opts.args << '--window-size=1280,1696'
  end
  Capybara::Selenium::Driver.new(app, browser: :chrome, options: browser_options)
end

RSpec.configure do |config|
  # rspec-rails 3 will no longer automatically infer an example group's spec type
  # from the file location. You can explicitly opt-in to the feature using this
  # config option.
  # To explicitly tag specs without using automatic inference, set the `:type`
  # metadata manually:
  #
  #     describe ThingsController, :type => :controller do
  #       # Equivalent to being in spec/controllers
  #     end
  config.infer_spec_type_from_file_location!
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
blacklight_range_limit-8.1.0 spec/spec_helper.rb
blacklight_range_limit-8.0.1 spec/spec_helper.rb
blacklight_range_limit-8.0.0 spec/spec_helper.rb
blacklight_range_limit-7.9.1 spec/spec_helper.rb
blacklight_range_limit-7.9.0 spec/spec_helper.rb
blacklight_range_limit-6.5.0 spec/spec_helper.rb
blacklight_range_limit-7.8.2 spec/spec_helper.rb
blacklight_range_limit-7.8.1 spec/spec_helper.rb
blacklight_range_limit-7.8.0 spec/spec_helper.rb
blacklight_range_limit-7.7.0 spec/spec_helper.rb
blacklight_range_limit-6.4.0 spec/spec_helper.rb
blacklight_range_limit-7.6.0 spec/spec_helper.rb
blacklight_range_limit-7.5.0 spec/spec_helper.rb
blacklight_range_limit-7.4.0 spec/spec_helper.rb
blacklight_range_limit-7.3.2 spec/spec_helper.rb
blacklight_range_limit-7.3.1 spec/spec_helper.rb
blacklight_range_limit-7.3.0 spec/spec_helper.rb