features/support/env.rb in bogus-0.1.0 vs features/support/env.rb in bogus-0.1.1
- old
+ new
@@ -1,5 +1,24 @@
require 'aruba/cucumber'
+require 'aruba/jruby'
Before('@known_bug') do
pending("This scenario fails because of a known bug")
+end
+
+Before do |scenario|
+ dir_name = "scenario-#{rand(1_000_000)}"
+ create_dir(dir_name)
+ cd(dir_name)
+end
+
+Before do
+ @aruba_timeout_seconds = 60
+end
+
+if RUBY_PLATFORM == 'java' && ENV['TRAVIS']
+ Aruba.configure do |config|
+ config.before_cmd do
+ set_env('JAVA_OPTS', "#{ENV['JAVA_OPTS']} -d64")
+ end
+ end
end