Sha256: d1aad18c700efb91162431ec67ece17025f0e971a90addeb4f2edce3afd9d0aa
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'rubygems' require 'bundler' Bundler.setup require 'ruby-debug' if !defined?(RUBY_ENGINE) && RUBY_VERSION != '1.9.3' && !ENV['CI'] require 'aruba/cucumber' additional_paths = [] Before('@rspec-1') do additional_paths << File.join(%w[ .. .. vendor rspec-1 bin ]) end Before do load_paths, requires = ['../../lib'], [] if RUBY_VERSION < '1.9' requires << "rubygems" else load_paths << '.' end requires << '../../features/support/vcr_cucumber_helpers' requires.map! { |r| "-r#{r}" } set_env('RUBYOPT', "-I#{load_paths.join(':')} #{requires.join(' ')}") if RUBY_PLATFORM == 'java' # ideas taken from: http://blog.headius.com/2010/03/jruby-startup-time-tips.html set_env('JRUBY_OPTS', '-X-C') # disable JIT since these processes are so short lived set_env('JAVA_OPTS', '-d32') # force jRuby to use client JVM for faster startup times end if additional_paths.any? existing_paths = ENV['PATH'].split(':') set_env('PATH', (additional_paths + existing_paths).join(':')) end @aruba_timeout_seconds = RUBY_PLATFORM == 'java' ? 60 : 20 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vcr-2.0.0.rc1 | features/support/env.rb |