Sha256: a784837ffcb0fcb323d1422079a5ec6f4a51f68d581965ea78e2e0de1caf3588
Contents?: true
Size: 1.15 KB
Versions: 6
Compression:
Stored size: 1.15 KB
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') RES_DIR = File.join(File.expand_path(File.dirname(__FILE__)),'..','..','res') 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/expandsync" FileUtils.rm_rf "/tmp/expandsync" FileUtils.mkdir "/tmp/expandsync" FileUtils.mkdir "/tmp/expandsync/input" FileUtils.mkdir "/tmp/expandsync/output" FileUtils.mkdir_p "/tmp/expandsync/Dropbox/TextExpander" FileUtils.cp(File.join(RES_DIR, 'atext.csv'), '/tmp/expandsync/input/atext.csv') FileUtils.cp(File.join(RES_DIR, 'random-text-file.txt'), '/tmp/expandsync/input/random-text-file.txt') FileUtils.cp(File.join(RES_DIR, 'Settings.textexpander'), '/tmp/expandsync/Dropbox/TextExpander') end After do ENV['RUBYLIB'] = @original_rubylib ENV['HOME'] = @original_home end
Version data entries
6 entries across 6 versions & 1 rubygems