Sha256: 9d57a3e6e5ad737dfd505eaa91e263a46da1408f301af90d2fbf2f347b9dd33b
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 Bytes
Contents
require 'aruba/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'] @files_created = [] @dirs_created = [] ENV['RUBYLIB'] = LIB_DIR + File::PATH_SEPARATOR + ENV['RUBYLIB'].to_s end After do ENV['RUBYLIB'] = @original_rubylib @files_created.each do |file| FileUtils.rm file if File.exists?(file) end @dirs_created.each do |dir| FileUtils.rm_rf dir if File.exists?(dir) end end
Version data entries
6 entries across 6 versions & 1 rubygems