Sha256: 38eda1a31dc7a7867ec7fef36b3f8da146badc48adb252f63e4fc5cc34de8734

Contents?: true

Size: 907 Bytes

Versions: 13

Compression:

Stored size: 907 Bytes

Contents

# encoding: utf-8

JRUBY_OPTS_SAVED=ENV['JRUBY_OPTS']
JAVA_OPTS_SAVED=ENV['JAVA_OPTS']

require 'cucumber'
require 'aruba/cucumber'
require 'adhearsion'

Before do
  @aruba_timeout_seconds = ENV.has_key?('ARUBA_TIMEOUT') ? ENV['ARUBA_TIMEOUT'].to_i : (RUBY_PLATFORM == 'java' ? 60 : 30)
  ENV['AHN_PUNCHBLOCK_RECONNECT_ATTEMPTS'] = '0'
  ENV['AHN_PUNCHBLOCK_PORT'] = '1'
end

Before '@reconnect' do
  ENV['AHN_PUNCHBLOCK_RECONNECT_ATTEMPTS'] = '100'
end

# TODO: check for name space / run issues
# NOTE: this will not stop a forked process (eg. daemon mode)
After do
  terminate_processes!
end

# Aruba upstream overwrites these variables so set them here until it is fixed.
Aruba.configure do |config|
  config.before_cmd do |cmd|
    set_env('JRUBY_OPTS', "#{ENV['JRUBY_OPTS']} #{JRUBY_OPTS_SAVED}")
    set_env('JAVA_OPTS', "#{ENV['JAVA_OPTS']} #{JAVA_OPTS_SAVED}")
  end
end if RUBY_PLATFORM == 'java'

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
adhearsion-2.6.4 features/support/env.rb
adhearsion-2.6.3 features/support/env.rb
adhearsion-2.6.2 features/support/env.rb
adhearsion-2.6.1 features/support/env.rb
adhearsion-2.6.0 features/support/env.rb
adhearsion-2.5.4 features/support/env.rb
adhearsion-2.5.3 features/support/env.rb
adhearsion-2.5.2 features/support/env.rb
adhearsion-2.5.0 features/support/env.rb
adhearsion-2.4.0 features/support/env.rb
adhearsion-2.4.0.beta3 features/support/env.rb
adhearsion-2.4.0.beta2 features/support/env.rb
adhearsion-2.4.0.beta1 features/support/env.rb