Sha256: fc099de0d11d74fb280025f436948a62a6cef44a1f12eebec237ff28f18cba47

Contents?: true

Size: 700 Bytes

Versions: 3

Compression:

Stored size: 700 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']
  ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s
  @original_home = ENV['HOME']
  @fake_home = File.join("/tmp","fakehome")
  FileUtils.rm_rf @fake_home
  FileUtils.mkdir @fake_home
  ENV['HOME'] = @fake_home
end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
prag_events-1.0.0 features/support/env.rb
prag_events-0.0.2 features/support/env.rb
prag_events-0.0.1 features/support/env.rb