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.23.2.ci.182.1 spec/support/global_config.rb
gitx-2.23.2 spec/support/global_config.rb
gitx-2.23.1.ci.174.1 spec/support/global_config.rb
gitx-2.23.1 spec/support/global_config.rb
gitx-2.23.0.ci.162.1 spec/support/global_config.rb
gitx-2.23.0 spec/support/global_config.rb
gitx-2.22.0.ci.154.1 spec/support/global_config.rb
gitx-2.22.0 spec/support/global_config.rb
gitx-2.21.5.ci.153.1 spec/support/global_config.rb
gitx-2.21.5.ci.151.1 spec/support/global_config.rb
gitx-2.21.5 spec/support/global_config.rb
gitx-2.21.4.ci.145.1 spec/support/global_config.rb
gitx-2.21.4 spec/support/global_config.rb
gitx-2.21.3.ci.135.1 spec/support/global_config.rb
gitx-2.21.3 spec/support/global_config.rb
gitx-2.21.2.ci.134.1 spec/support/global_config.rb
gitx-2.21.2.ci.130.1 spec/support/global_config.rb
gitx-2.21.2 spec/support/global_config.rb
gitx-2.21.1.ci.125.1 spec/support/global_config.rb
gitx-2.21.1 spec/support/global_config.rb