mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
14 lines
474 B
Ruby
14 lines
474 B
Ruby
require 'aruba/cucumber'
|
|
|
|
PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')).freeze
|
|
|
|
Before do
|
|
@aruba_timeout_seconds = 3600
|
|
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
|
|
set_env('JAVA_OPTS', "-d32 #{ENV['JAVA_OPTS']}") # force jRuby to use client JVM for faster startup times
|
|
end
|
|
end if RUBY_PLATFORM == 'java'
|