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.73 test/helper.rb
roda-component-0.1.72 test/helper.rb
roda-component-0.1.71 test/helper.rb
roda-component-0.1.70 test/helper.rb
roda-component-0.1.69 test/helper.rb
roda-component-0.1.68 test/helper.rb
roda-component-0.1.67 test/helper.rb
roda-component-0.1.66 test/helper.rb
roda-component-0.1.65 test/helper.rb
roda-component-0.1.64 test/helper.rb
roda-component-0.1.63 test/helper.rb
roda-component-0.1.62 test/helper.rb
roda-component-0.1.61 test/helper.rb
roda-component-0.1.60 test/helper.rb
roda-component-0.1.59 test/helper.rb
roda-component-0.1.58 test/helper.rb
roda-component-0.1.57 test/helper.rb
roda-component-0.1.56 test/helper.rb
roda-component-0.1.55 test/helper.rb
roda-component-0.1.54 test/helper.rb