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