Sha256: 1222ebcddc718421aa4552aae7d5db9d1c1dbedb8ae71d68450f3bdb0acdab88

Contents?: true

Size: 314 Bytes

Versions: 5

Compression:

Stored size: 314 Bytes

Contents

require 'spec_helper'

describe Dandelion::Config do
  let(:data) {{ 'foo' => 'bar' }}

  before(:each) do
    YAML.should_receive(:load_file).with('foo').and_return(data)
  end

  let(:config) { Dandelion::Config.new(path: 'foo') }

  it 'parses yaml config file' do
    expect(config[:foo]).to eq 'bar'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dandelion-0.4.3 spec/dandelion/config_spec.rb
dandelion-0.4.2 spec/dandelion/config_spec.rb
dandelion-0.4.1 spec/dandelion/config_spec.rb
dandelion-0.4.0 spec/dandelion/config_spec.rb
dandelion-0.4.0.beta2 spec/dandelion/config_spec.rb