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

Version Path
gitx-4.5.0 spec/support/global_config.rb
gitx-4.4.0 spec/support/global_config.rb
gitx-4.3.0 spec/support/global_config.rb
gitx-4.1.1 spec/support/global_config.rb
gitx-4.1.0 spec/support/global_config.rb
gitx-4.0.0 spec/support/global_config.rb
gitx-4.0.0.ci.234.1 spec/support/global_config.rb
gitx-3.2.0 spec/support/global_config.rb
gitx-3.2.0.ci.231.1 spec/support/global_config.rb
gitx-3.1.2 spec/support/global_config.rb
gitx-3.1.1 spec/support/global_config.rb
gitx-3.1.0.ci.216.1 spec/support/global_config.rb
gitx-3.1.0 spec/support/global_config.rb
gitx-3.0.2.ci.213.1 spec/support/global_config.rb
gitx-3.0.2.ci.207.1 spec/support/global_config.rb
gitx-3.0.2 spec/support/global_config.rb
gitx-3.0.1.ci.200.1 spec/support/global_config.rb
gitx-3.0.1 spec/support/global_config.rb
gitx-3.0.0.ci.188.1 spec/support/global_config.rb
gitx-3.0.0 spec/support/global_config.rb