Sha256: 95f5dccf5efa77d89517acb81e6268c8adc00c8ed18d2ab83ae297d6c9919a0a
Contents?: true
Size: 556 Bytes
Versions: 79
Compression:
Stored size: 556 Bytes
Contents
# helper for reading global config file module GlobalConfig def global_config_file config_file = File.join(temp_dir, '.config/gitx/github.yml') config_dir = File.dirname(config_file) FileUtils.mkdir_p(config_dir) unless File.exist?(config_dir) config_file end def global_config YAML.load_file(global_config_file) end def temp_dir File.join(__dir__, '../tmp') end end RSpec.configure do |config| config.include GlobalConfig config.before do FileUtils.rm_rf(temp_dir) FileUtils.mkdir_p(temp_dir) end end
Version data entries
79 entries across 79 versions & 1 rubygems