Sha256: 161c1c993cf2894d7f21341436e7f66338b26fd05e74039b9968c656591cf143

Contents?: true

Size: 652 Bytes

Versions: 8

Compression:

Stored size: 652 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"
end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
electric_eye-0.1.4 features/support/env.rb
electric_eye-0.1.3 features/support/env.rb
electric_eye-0.1.1 features/support/env.rb
electric_eye-0.1.0 features/support/env.rb
electric_eye-0.0.5 features/support/env.rb
electric_eye-0.0.3 features/support/env.rb
electric_eye-0.0.2 features/support/env.rb
electric_eye-0.0.1 features/support/env.rb