Sha256: be9b41c2849cd1a90519fb848c95b1a6c8533ffa7d76c3b6932cbeec796b01ea

Contents?: true

Size: 509 Bytes

Versions: 3

Compression:

Stored size: 509 Bytes

Contents

require 'spec_helper'

describe Etcdist::Reader do

  let(:reader) do
    dir = File.join(File.dirname(__FILE__), '../data')
    Etcdist::Reader.new(dir)
  end

  it 'should return directories pointing to key/values' do
    expect(reader.read).to match('/etcdist/foo' => {
                                   'fish' => 'plankton',
                                   'cows' => 'grass',
                                   'dogs' => 'bones',
                                   'equation' => 'e=mc^2' })
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
etcdist-0.0.6 spec/etcdist/reader_spec.rb
etcdist-0.0.5 spec/etcdist/reader_spec.rb
etcdist-0.0.4 spec/etcdist/reader_spec.rb