Sha256: 9df0846ef0b71a26945645342ffaf4b83d1f2cac8d00fad1d9edf4058d766551

Contents?: true

Size: 612 Bytes

Versions: 61

Compression:

Stored size: 612 Bytes

Contents

require 'aruba/cucumber'
require 'rspec/core'
require 'rspec/its'

Before do
  if RUBY_PLATFORM =~ /java/ || defined?(Rubinius)
    @aruba_timeout_seconds = 60
  else
    @aruba_timeout_seconds = 10
  end
end

Aruba.configure do |config|
  config.before_cmd do |cmd|
    set_env('JRUBY_OPTS', "-X-C #{ENV['JRUBY_OPTS']}") # disable JIT since these processes are so short lived
  end
end if RUBY_PLATFORM == 'java'

Aruba.configure do |config|
  config.before_cmd do |cmd|
    set_env('RBXOPT', "-Xint=true #{ENV['RBXOPT']}") # disable JIT since these processes are so short lived
  end
end if defined?(Rubinius)

Version data entries

61 entries across 52 versions & 9 rubygems

Version Path
rspec-its-1.0.0.pre features/support/env.rb