Sha256: b129ce1fd40b9a68331a8efb59a405d22de7177b2c396d47605f455229639639
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
require 'aruba/cucumber' require 'methadone/cucumber' ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}" LIB_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','..','lib') Before do # Using "announce" causes massive warnings on 1.9.2 @puts = true @original_rubylib = ENV['RUBYLIB'] ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s @original_home = ENV['HOME'] ENV['HOME'] = "/tmp/fakehome" FileUtils.rm_rf "/tmp/fakehome" FileUtils.mkdir "/tmp/fakehome" @files_override = nil end After do ENV['RUBYLIB'] = @original_rubylib ENV['HOME'] = @original_home end
Version data entries
3 entries across 3 versions & 1 rubygems