Sha256: 2f253e61bac298ad4c279877c61530d6496ae83758f74e8e492f71169711206d

Contents?: true

Size: 456 Bytes

Versions: 8

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true
RSpec.configure do |c|
  Capybara.disable_animation = true

  c.before(:example, type: :system) do
    driven_by ENV['DEBUG_CAPYBARA'] ? :selenium_chrome : :selenium_chrome_headless
  end

  c.when_first_matching_example_defined(type: :system) do
    c.before :suite do
      # Preload assets
      if Rails.application.respond_to?(:precompiled_assets)
        Rails.application.precompiled_assets
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
solidus_seo-1.1.2 spec/system_helper.rb
solidus_seo-1.1.1 spec/system_helper.rb
solidus_seo-1.1.0 spec/system_helper.rb
solidus_seo-1.0.13 spec/system_helper.rb
solidus_seo-1.0.12 spec/system_helper.rb
solidus_seo-1.0.11 spec/system_helper.rb
solidus_seo-1.0.10 spec/system_helper.rb
solidus_seo-1.0.8 spec/system_helper.rb