Sha256: 5e9a2b19bed300278006c9109a1462133e5a26c282b6283919140b084e230902
Contents?: true
Size: 869 Bytes
Versions: 6
Compression:
Stored size: 869 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'fileutils' require 'pathname' require 'tmpdir' # XDG directories shelr_dir = File.join(Dir.tmpdir, 'shelr') FileUtils.mkdir_p(shelr_dir) TEMPDIR = Pathname.new Dir.mktmpdir('test', shelr_dir) XDG_DATA_DIR = TEMPDIR.join('.local', 'share') XDG_CONFIG_DIR = TEMPDIR.join('.config') FileUtils.mkdir_p(XDG_DATA_DIR) FileUtils.mkdir_p(XDG_CONFIG_DIR) ENV['XDG_DATA_HOME'] = XDG_DATA_DIR.to_s ENV['XDG_CONFIG_HOME'] = XDG_CONFIG_DIR.to_s require 'rspec' require 'shelr' require "rubygems" require "bundler/setup" # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.mock_with :mocha end
Version data entries
6 entries across 6 versions & 1 rubygems