Sha256: ef81befb7c3adb78060cb67d9dbafc7f27a790c23c1c0f9e2b08ce7fe05e4b64

Contents?: true

Size: 789 Bytes

Versions: 12

Compression:

Stored size: 789 Bytes

Contents

require 'bundler/setup'
require 'capybara'
require 'capybara/mechanize'
require 'artifice'

require 'sinatra'

require 'capybara/spec/extended_test_app'

# TODO move this stuff into capybara
require 'capybara/spec/driver'
require 'capybara/spec/session'

alias :running :lambda

Capybara.default_wait_time = 0 # less timeout so tests run faster

RSpec.configure do |config|
  config.before(:all) do
    Artifice.activate_with(ExtendedTestApp)
  end

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

  config.after(:all) do
    Artifice.deactivate
  end
  # config.filter_run :focus => true
end

REMOTE_TEST_URL = "http://localhost"
GOOD_PROXY = "http://proxy.com"
BAD_PROXY = "fasfasfasfasf"
PROXY_WITH_PORT = "http://proxy.com:520"

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
bbc-capybara-mechanize-0.4.2 spec/spec_helper.rb
bbc-capybara-mechanize-0.4.1 spec/spec_helper.rb
bbc-capybara-mechanize-0.4 spec/spec_helper.rb
bbc-capybara-mechanize-0.3.8 spec/spec_helper.rb
bbc-capybara-mechanize-0.3.6 spec/spec_helper.rb
bbc-capybara-mechanize-with-proxy-0.3.1 spec/spec_helper.rb
bbc-capybara-mechanize-0.3.5 spec/spec_helper.rb
bbc-capybara-mechanize-0.3.4 spec/spec_helper.rb
bbc-capybara-mechanize-0.3.3 spec/spec_helper.rb
bbc-capybara-mechanize-0.3.2 spec/spec_helper.rb
bbc-capybara-mechanize-0.3.1 spec/spec_helper.rb
bbc-capybara-mechanize-with-proxy-0.3.0.rc0 spec/spec_helper.rb