Sha256: 15785b8e01baff9a3991d5ef883252fe90c1e200ac4f8aa98b9a51880c80f319

Contents?: true

Size: 553 Bytes

Versions: 6

Compression:

Stored size: 553 Bytes

Contents

require 'spec_helper'
require 'retrospec/config'


describe 'config' do
  let(:config_obj) do
       Retrospec::Config.new
  end

  it do
     expect(config_obj.config_data['plugins::puppet::templates::ref']).to eq('master')
     expect(config_obj.config_data).to be_a Hash
  end

  it 'returns the correct context' do
    context = Retrospec::Config.plugin_context(config_obj.config_data, 'puppet')
    expect(context.keys.count).to eq(2)
    expect(context['plugins::puppet::templates::ref']).to eq('master')
    expect(context).to be_a Hash
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
retrospec-0.4.0 spec/config_spec.rb
retrospec-0.3.1 spec/config_spec.rb
retrospec-0.3.0 spec/config_spec.rb
retrospec-0.2.1 spec/config_spec.rb
retrospec-0.2.0 spec/config_spec.rb
retrospec-0.1.0 spec/config_spec.rb