Sha256: 07f198034ef868b3a17c736fbbd151979bb80de02ab659d363d3b75f39cf9547

Contents?: true

Size: 705 Bytes

Versions: 4

Compression:

Stored size: 705 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
  
  # Setup fake home directory in /tmp/fakehome before tests
  @real_home = ENV['HOME']
  ENV['HOME'] = '/tmp/fakehome'
  FileUtils.rm_rf '/tmp/fakehome'
  FileUtils.mkdir '/tmp/fakehome'
end

After do
  ENV['RUBYLIB'] = @original_rubylib
  ENV['HOME'] = @real_home
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
working_man-0.2.0 features/support/env.rb
working_man-0.1.1 features/support/env.rb
working_man-0.0.6 features/support/env.rb
working_man-0.0.5 features/support/env.rb