features/support/env.rb in adhearsion-2.3.5 vs features/support/env.rb in adhearsion-2.4.0.beta1

- old
+ new

@@ -6,10 +6,10 @@ require 'cucumber' require 'aruba/cucumber' require 'adhearsion' Before do - @aruba_timeout_seconds = ENV['ARUBA_TIMEOUT'] || RUBY_PLATFORM == 'java' ? 60 : 30 + @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