Sha256: d49638be9d3779f0a31216d6c78512150cd14131eb7f58b9b25d14a8fbdc234a
Contents?: true
Size: 1.14 KB
Versions: 55
Compression:
Stored size: 1.14 KB
Contents
require 'bundler' Bundler.setup ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby" require 'aruba/cucumber' require 'aruba/jruby' if RUBY_PLATFORM == 'java' gem_specs = Bundler.load.specs load_paths = Dir.glob(gem_specs.map { |spec| if spec.respond_to?(:lib_dirs_glob) spec.lib_dirs_glob else spec.load_paths end }.flatten) load_paths << File.expand_path("../../../spec", __FILE__) rubyopt = "-rsupport/cucumber_helpers" if RUBY_VERSION > '1.9' load_paths.unshift(".") rubyopt = "--disable-gems #{rubyopt}" unless "rbx" == ruby_engine end Before do @aruba_timeout_seconds = 30 if "jruby" == ruby_engine @aruba_io_wait_seconds = 0.1 else @aruba_io_wait_seconds = 0.02 end end Before("~@with-bundler") do set_env("RUBYLIB", load_paths.join(":")) set_env("RUBYOPT", rubyopt) set_env("RBXOPT", "--disable-gems #{ENV["RBXOPT"]}") if "rbx" == ruby_engine set_env("GEM_HOME", nil) end Before("@with-bundler") do set_env("RUBYLIB", ".:#{ENV["RUBYLIB"]}:#{load_paths.last}") set_env("RUBYOPT", "#{ENV["RUBYOPT"]} -rsupport/cucumber_helpers") set_env("BUNDLE_GEMFILE", Bundler.default_gemfile.expand_path.to_s) end
Version data entries
55 entries across 55 versions & 6 rubygems