Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (15 sloc) 610 Bytes
require 'rspec'
require 'rspec/autorun'
PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')).freeze
$LOAD_PATH << File.join(PROJECT_ROOT, 'lib')
Dir[File.join(PROJECT_ROOT, 'spec', 'support', '**', '*.rb')].each { |file| require(file) }
spec_dir = nil
$:.detect do |dir|
if File.exists? File.join(dir, "capybara.rb")
spec_dir = File.expand_path(File.join(dir,"..","spec"))
$:.unshift( spec_dir )
require File.join(spec_dir,"spec_helper")
require 'capybara/driver/webkit/browser'
$webkit_browser = => TCPSocket)
Jump to Line
Something went wrong with that request. Please try again.