features/support/env.rb in rspec-its-1.3.1 vs features/support/env.rb in rspec-its-2.0.0
- old
+ new
@@ -1,15 +1,14 @@
+# frozen_string_literal: true
+
require 'aruba/cucumber'
require 'rspec/core'
require 'rspec/its'
-Aruba.configure do |config|
- config.before(:command) do |cmd|
- cmd.environment['JRUBY_OPTS'] = "-X-C #{ENV['JRUBY_OPTS']}" # disable JIT since these processes are so short lived
+if RUBY_PLATFORM == 'java'
+ Aruba.configure do |config|
+ config.before(:command) do |cmd|
+ # disable JIT since these processes are so short lived
+ cmd.environment['JRUBY_OPTS'] = "-X-C #{ENV.fetch('JRUBY_OPTS', '')}"
+ end
end
-end if RUBY_PLATFORM == 'java'
-
-Aruba.configure do |config|
- config.before(:command) do |cmd|
- cmd.environment['RBXOPT'] = "-Xint=true #{ENV['RBXOPT']}" # disable JIT since these processes are so short lived
- end
-end if defined?(Rubinius)
+end