Sha256: 6ec07b9d14da7cb8a690ad83c49a865f4f5b70b4b9d2f5d318aa8dbf192ed0ea

Contents?: true

Size: 608 Bytes

Versions: 5

Compression:

Stored size: 608 Bytes

Contents

require 'aruba/cucumber'
require 'rspec/expectations'

Aruba.configure do |config|
  if RUBY_PLATFORM =~ /java/ || defined?(Rubinius) || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'truffleruby')
    config.exit_timeout = 60
  else
    config.exit_timeout = 5
  end
end

Before do
  if RUBY_PLATFORM == 'java'
    # disable JIT since these processes are so short lived
    set_environment_variable('JRUBY_OPTS', "-X-C #{ENV['JRUBY_OPTS']}")
  end

  if defined?(Rubinius)
    # disable JIT since these processes are so short lived
    set_environment_variable('RBXOPT', "-Xint=true #{ENV['RBXOPT']}")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opal-rspec-1.1.0.alpha3 rspec-mocks/upstream/features/support/env.rb
opal-rspec-1.1.0.alpha2 rspec-mocks/upstream/features/support/env.rb
opal-rspec-1.1.0.alpha1 rspec-mocks/upstream/features/support/env.rb
opal-rspec-1.0.0 rspec-mocks/upstream/features/support/env.rb
opal-rspec-1.0.0.alpha1 rspec-mocks/upstream/features/support/env.rb