Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (27 sloc) 0.9 kB
$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"
require 'pry'
require 'pry-nav'
RSpec.configure do |config|
config.mock_with :rspec
end
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
Jump to Line
Something went wrong with that request. Please try again.