Sha256: 0241a90a9437d1bfa15e35ecf2321409d9de7e901bd3c8c9237889400dda8eea

Contents?: true

Size: 282 Bytes

Versions: 17

Compression:

Stored size: 282 Bytes

Contents

require 'yaml'
require_relative '../lib/rhapsody'

module ConfigHelper
  def ConfigHelper.load
    config_path = Dir.pwd.to_s + '/spec/config.yml'

    if File.exist?(config_path)
      YAML.load_file(config_path)
    else
      raise 'spec/config.yml not found.'
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rhapsody-0.0.11 spec/config_helper.rb
rhapsody-0.0.10 spec/config_helper.rb
rhapsody-0.0.9 spec/config_helper.rb
rhapsody-0.0.8 spec/config_helper.rb
rhapsody-0.0.8.beta3 spec/config_helper.rb
rhapsody-0.0.8.beta2 spec/config_helper.rb
rhapsody-0.0.8.beta1 spec/config_helper.rb
rhapsody-0.0.7 spec/config_helper.rb
rhapsody-0.0.6 spec/config_helper.rb
rhapsody-0.0.6.beta4 spec/config_helper.rb
rhapsody-0.0.6.beta3 spec/config_helper.rb
rhapsody-0.0.6.beta2 spec/config_helper.rb
rhapsody-0.0.6.beta1 spec/config_helper.rb
rhapsody-0.0.5 spec/config_helper.rb
rhapsody-0.0.4 spec/config_helper.rb
rhapsody-0.0.3 spec/config_helper.rb
rhapsody-0.0.2 spec/config_helper.rb