Sha256: 62f848d87c9e0af0c1d80335ae98c16edea324f66036dda5927499db2b193cf1
Contents?: true
Size: 882 Bytes
Versions: 31
Compression:
Stored size: 882 Bytes
Contents
require 'aruba/cucumber' require 'methadone/cucumber' PROJECT_ROOT = File.join(File.dirname(__FILE__),'..','..') ENV['PATH'] = "#{File.join(PROJECT_ROOT,'bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}" ARUBA_DIR = File.join(%w(tmp aruba)) Before do @dirs = [ARUBA_DIR] @puts = true @aruba_timeout_seconds = 60 @original_rubylib = ENV['RUBYLIB'] @original_rubyopt = ENV['RUBYOPT'] # We want to use, hopefully, the methadone from this codebase and not # the gem, so we put it in the RUBYLIB ENV['RUBYLIB'] = File.join(PROJECT_ROOT,'lib') + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s # We need -rubygems here so that 1.8-style rubies work AND travis-ci doesn't barf with it in the shebang line ENV['RUBYOPT'] = (ENV['RUBYOPT'] || '') + ' -rubygems' end After do # Put back how it was ENV['RUBYLIB'] = @original_rubylib ENV['RUBYOPT'] = @original_rubyopt end
Version data entries
31 entries across 31 versions & 2 rubygems