Sha256: d397364442310b7d2efba0499b032c98457e5a93eca47d5f714229bac59f7642

Contents?: true

Size: 1020 Bytes

Versions: 9

Compression:

Stored size: 1020 Bytes

Contents

require 'capybara/spec/spec_helper'
require 'capybara/mechanize'
require 'capybara/spec/extended_test_app'

PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')).freeze

$LOAD_PATH << File.join(PROJECT_ROOT, 'lib')

Dir[File.join(PROJECT_ROOT, 'spec', 'support', '**', '*.rb')].each { |file| require(file) }

RSpec.configure do |config|
  # This needs to remain commented out until there is a capybara release that includes https://github.com/jnicklas/capybara/pull/1078
  # config.filter_run :focus => true
  config.run_all_when_everything_filtered = true
  config.treat_symbols_as_metadata_keys_with_true_values = true

  # Used with DisableExternalTests
  config.filter_run_excluding :external_test_disabled

  config.include RemoteTestUrl
  config.extend RemoteTestUrl
  config.include Capybara::SpecHelper

  config.after do
    Capybara::Mechanize.local_hosts = nil
  end

  Capybara::SpecHelper.configure(config)

  config.order = "random"

  CAPYBARA_DEFAULT_HOST = Capybara.default_host
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
capybara-mechanize-1.10.1 spec/spec_helper.rb
capybara-mechanize-1.10.0 spec/spec_helper.rb
capybara-mechanize-1.9.0 spec/spec_helper.rb
capybara-mechanize-1.8.0 spec/spec_helper.rb
capybara-mechanize-1.7.0 spec/spec_helper.rb
capybara-mechanize-1.6.0 spec/spec_helper.rb
capybara-mechanize-1.5.0 spec/spec_helper.rb
capybara-mechanize-1.4.1 spec/spec_helper.rb
capybara-mechanize-1.4.0 spec/spec_helper.rb