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-2.16.0.pre.ci.81.1 spec/support/global_config.rb
gitx-2.15.0 spec/support/global_config.rb
gitx-2.15.0.ci.75.1 spec/support/global_config.rb
gitx-2.14.2.ci.70.1 spec/support/global_config.rb
gitx-2.14.1.ci.62.1 spec/support/global_config.rb
gitx-2.14.1 spec/support/global_config.rb
gitx-2.14.0.ci.56.1 spec/support/global_config.rb
gitx-2.14.0 spec/support/global_config.rb
gitx-2.13.7 spec/support/global_config.rb
gitx-2.13.7.ci.52.1 spec/support/global_config.rb
gitx-2.13.6 spec/support/global_config.rb
gitx-2.13.6.ci.50.1 spec/support/global_config.rb
gitx-2.13.5.ci.46.1 spec/support/global_config.rb
gitx-2.13.5 spec/support/global_config.rb
gitx-2.13.4.ci.39.1 spec/support/global_config.rb
gitx-2.13.4 spec/support/global_config.rb
gitx-2.13.3 spec/support/global_config.rb
gitx-2.13.2 spec/support/global_config.rb
gitx-2.13.1 spec/support/global_config.rb