Sha256: 8ce39dec8881d3a51d388c1c277baf11e3996d881a39dd12c7632ce5869cea02

Contents?: true

Size: 946 Bytes

Versions: 18

Compression:

Stored size: 946 Bytes

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 + Poltergeist
require 'capybara/poltergeist'

Capybara.register_driver :poltergeist do |app|
  Capybara::Poltergeist::Driver.new(
      app,
      # inspector:   '/Applications/Chromium.app/Contents/MacOS/Chromium', # open in inspector: page.driver.debug
      window_size: [1280, 1024],
      timeout: 90,
      js_errors: true
  )
end

Capybara.configure do |config|
  config.app_host = 'http://localhost:7000'
  config.default_driver    = :poltergeist
  config.javascript_driver = :poltergeist
  config.server_port       = 7000
  config.default_wait_time = 10
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
helio-0.1.12 test/test_helper.rb
helio-0.1.11 test/test_helper.rb
helio-0.1.10 test/test_helper.rb
helio-0.1.9 test/test_helper.rb
helio-0.1.8 test/test_helper.rb
helio-0.1.7 test/test_helper.rb
helio-0.1.6 test/test_helper.rb
helio-0.0.1.5 test/test_helper.rb
helio-0.0.1.4 test/test_helper.rb
helio-0.0.1.3 test/test_helper.rb
helio-0.0.1.2 test/test_helper.rb
helio-0.0.1.1 test/test_helper.rb
helio-0.0.1.0 test/test_helper.rb
helio-0.0.0.9 test/test_helper.rb
helio-0.0.0.8 test/test_helper.rb
helio-0.0.0.7 test/test_helper.rb
helio-0.0.0.6 test/test_helper.rb
helio-0.0.0.5 test/test_helper.rb