Sha256: 938c8621314bca9bc8cdd8770924aa1590e16b34ff79143b142ab46f6521b21a

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 Bytes

Contents

require 'spec_helper'

describe Pingfm::Config do

  SPEC_CONFIG_FILE = "#{File.dirname(__FILE__)}/../pingfm_spec.yml"

  it 'has a CONFIG_PATH' do
    Pingfm::Config::CONFIG_PATH.should_not be_nil
  end

  it 'has a CONFIG_FILE' do
    Pingfm::Config::CONFIG_FILE.should_not be_nil
  end

  it 'loads the given config file' do
    Pingfm::Config.setup!(SPEC_CONFIG_FILE)
    @config = ::YAML.load_file(SPEC_CONFIG_FILE)
    Pingfm::Config['app_key'].should == @config['app_key']
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pingfm-2.1.3 spec/pingfm/config_spec.rb
pingfm-2.1.2 spec/pingfm/config_spec.rb
pingfm-2.1.0 spec/pingfm/config_spec.rb
pingfm-2.0.0 spec/pingfm/config_spec.rb