1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/spec/spec_helper.rb
2011-03-08 16:44:30 -03:00

26 lines
573 B
Ruby

$:.unshift(File.expand_path('../lib', File.dirname(__FILE__)))
require 'rubygems'
require "bundler/setup"
require 'rspec'
require 'capybara'
require 'capybara/spec/driver'
require 'capybara/spec/session'
alias :running :lambda
Capybara.default_wait_time = 0 # less timeout so tests run faster
module TestSessions
RackTest = Capybara::Session.new(:rack_test, TestApp)
Selenium = Capybara::Session.new(:selenium, TestApp)
end
RSpec.configure do |config|
config.before do
Capybara.configure do |config|
config.default_selector = :xpath
end
end
end