Sha256: 2eae914da6f5a66c8201534220930adcc67a29c64d67aab1fb7ed5578867fb7f
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
require 'rubygems' require 'bundler' Bundler.setup require 'limited_red/plugins/cucumber' unless ENV['CI'] 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'], [] # Put any bundler-managed gems (such as :git gems) on the load path for when aruba shells out. # Alternatively, we could hook up aruba to use bundler when it shells out, but invoking bundler # for each and every time aruba starts ruby would slow everything down. We really only need it for # bundler-managed gems. load_paths.push($LOAD_PATH.grep %r|bundler/gems|) 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 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vcr-2.0.0 | features/support/env.rb |
vcr-2.0.0.rc2 | features/support/env.rb |