Sha256: 646703af68ab01e54518609a83f8bd76fbce17d5a02408c690e3a342ca8acba1
Contents?: true
Size: 769 Bytes
Versions: 5
Compression:
Stored size: 769 Bytes
Contents
require 'aruba/cucumber' require 'methadone/cucumber' require 'fileutils' 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'] @original_home = ENV['HOME'] FileUtils.rm_rf("/tmp/akaTest") FileUtils.mkdir("/tmp/akaTest") ENV['HOME'] = "/tmp/akaTest" File.open("#{ENV['HOME']}/.alias", "w") { |file| file.puts 'alias test="echo this is a test"' } ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s end After do ENV['RUBYLIB'] = @original_rubylib ENV['HOME'] = @original_home end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
aka-0.6.0 | features/support/env.rb |
aka-0.5.8 | features/support/env.rb |
aka-0.5.4 | features/support/env.rb |
aka-0.5.2 | features/support/env.rb |
aka-0.5.1 | features/support/env.rb |