Sha256: 045ac27a30241ca72209cb22625b842bec4b16cb8733d63f05a2427a8134b32c

Contents?: true

Size: 541 Bytes

Versions: 71

Compression:

Stored size: 541 Bytes

Contents

lib = File.expand_path('../../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require_relative 'dummy/app'

require 'capybara/poltergeist'

Capybara.register_driver :poltergeist do |app|
  Capybara::Poltergeist::Driver.new(app, {
    phantomjs: ENV['PHANTOMJS_PATH'] || '/bin/phantomjs'
  })
end

Capybara.app = TestApp

# use port 8080 if it's open
unless system("lsof -i:8080", out: '/dev/null')
  Capybara.server_port = 8080
end
Capybara.default_driver    = :poltergeist
Capybara.javascript_driver = :poltergeist

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
roda-component-0.1.33 test/helper.rb
roda-component-0.1.32 test/helper.rb
roda-component-0.1.31 test/helper.rb
roda-component-0.1.30 test/helper.rb
roda-component-0.1.29 test/helper.rb
roda-component-0.1.28 test/helper.rb
roda-component-0.1.27 test/helper.rb
roda-component-0.1.26 test/helper.rb
roda-component-0.1.25 test/helper.rb
roda-component-0.1.24 test/helper.rb
roda-component-0.1.23 test/helper.rb
roda-component-0.1.22 test/helper.rb
roda-component-0.1.21 test/helper.rb
roda-component-0.1.20 test/helper.rb
roda-component-0.1.19 test/helper.rb
roda-component-0.1.18 test/helper.rb
roda-component-0.1.17 test/helper.rb
roda-component-0.1.16 test/helper.rb
roda-component-0.1.15 test/helper.rb
roda-component-0.1.11 test/helper.rb