$:.unshift(File.expand_path('../lib', File.dirname(__FILE__))) $:.unshift(File.dirname(__FILE__)) require 'rubygems' require 'spec' require 'spec/autorun' require 'capybara' require 'test_app' require 'drivers_spec' require 'session_spec' Dir[File.dirname(__FILE__)+'/dsl/*'].each { |group| require group include Object.const_get(group.match(/.*[\/]{1}([\w]*)[.rb]./).captures.first.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }) } require 'session_with_javascript_support_spec' require 'session_without_javascript_support_spec' require 'session_with_headers_support_spec' require 'session_without_headers_support_spec' alias :running :lambda Capybara.default_wait_time = 1 # less timeout so tests run faster