Sha256: 7fb1ee1e28b4ca59ed52b8919c5d730f11d3e3350afc66bd5f828a5880ae7d94

Contents?: true

Size: 609 Bytes

Versions: 28

Compression:

Stored size: 609 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'stringio'
describe 'environment' do
  let(:output) do
    StringIO.new
  end

  let(:debugger) do
    PuppetDebugger::Cli.new(out_buffer: output)
  end

  it 'environment returns object with properties' do
    expect(debugger.puppet_environment).to_not eq nil
    expect(debugger.default_site_manifest).to eq(File.join(Puppet[:environmentpath],
                                                           Puppet[:environment], 'manifests', 'site.pp'))
  end

  it 'full module path' do
    expect(debugger.modules_paths.count).to be >= 2
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
puppet-debugger-1.4.0 spec/environment_spec.rb
puppet-debugger-1.3.0 spec/environment_spec.rb
puppet-debugger-1.2.0 spec/environment_spec.rb
puppet-debugger-1.1.0 spec/environment_spec.rb
puppet-debugger-1.0.0 spec/environment_spec.rb
puppet-debugger-0.19.0 spec/environment_spec.rb
puppet-debugger-0.18.0 spec/environment_spec.rb
puppet-debugger-0.17.0 spec/environment_spec.rb
puppet-debugger-0.16.0 spec/environment_spec.rb
puppet-debugger-0.15.2 spec/environment_spec.rb
puppet-debugger-0.15.1 spec/environment_spec.rb
puppet-debugger-0.15.0 spec/environment_spec.rb
puppet-debugger-0.14.0 spec/environment_spec.rb
puppet-debugger-0.13.0 spec/environment_spec.rb
puppet-debugger-0.12.3 spec/environment_spec.rb
puppet-debugger-0.12.2 spec/environment_spec.rb
puppet-debugger-0.12.1 spec/environment_spec.rb
puppet-debugger-0.12.0 spec/environment_spec.rb
puppet-debugger-0.11.0 spec/environment_spec.rb
puppet-debugger-0.10.3 spec/environment_spec.rb