Sha256: f8fd8162b2f4bf6e61ab0f83bea5bc3ee93d87dc7a1cea4d250986044bd6a4f0

Contents?: true

Size: 899 Bytes

Versions: 1

Compression:

Stored size: 899 Bytes

Contents

require 'rubygems'
require 'bundler'
Bundler.setup

require 'ruby-debug' if !defined?(RUBY_ENGINE) && RUBY_VERSION != '1.9.3' && !ENV['CI']

require 'aruba/cucumber'

cucumer_helpers_file = '../../features/support/vcr_cucumber_helpers'
if RUBY_VERSION > '1.9.1'
  Before do
    set_env('RUBYOPT', "-I.:../../lib -r#{cucumer_helpers_file}")
  end
elsif RUBY_PLATFORM == 'java'
  Before do
    set_env('RUBYOPT', "-I../../lib -rubygems -r#{cucumer_helpers_file}")

    # 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
else
  Before do
    set_env('RUBYOPT', "-rubygems -r#{cucumer_helpers_file}")
  end
end

Before do
  @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.beta2 features/support/env.rb