Sha256: d735cc878e5db9f36829c6f31445c093a72ca64f7c7d43e9c112c613172cc1c7

Contents?: true

Size: 517 Bytes

Versions: 22

Compression:

Stored size: 517 Bytes

Contents

require 'spec_helper'
require 'puppet-debugger'
require 'puppet-debugger/plugin_test_helper'

describe :facts do
  include_examples 'plugin_tests'
  let(:args) { ['$::fqdn', 'facts'] }

  it 'should be able to resolve fqdn' do
    debugger_output = /foo\.example\.com/
    output = plugin.run(args[0])
    expect(output).to match(debugger_output)
  end

  it 'should be able to print facts' do
    debugger_output = /kernel/
    plugin.run(args[1])
    expect(plugin.run(args[1])).to match(debugger_output)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
puppet-debugger-0.19.0 spec/input_responders/facts_spec.rb
puppet-debugger-0.18.0 spec/input_responders/facts_spec.rb
puppet-debugger-0.17.0 spec/input_responders/facts_spec.rb
puppet-debugger-0.16.0 spec/input_responders/facts_spec.rb
puppet-debugger-0.15.2 spec/input_responders/facts_spec.rb
puppet-debugger-0.15.1 spec/input_responders/facts_spec.rb
puppet-debugger-0.15.0 spec/input_responders/facts_spec.rb
puppet-debugger-0.14.0 spec/input_responders/facts_spec.rb
puppet-debugger-0.13.0 spec/input_responders/facts_spec.rb
puppet-debugger-0.12.3 spec/input_responders/facts_spec.rb
puppet-debugger-0.12.2 spec/input_responders/facts_spec.rb
puppet-debugger-0.12.1 spec/input_responders/facts_spec.rb
puppet-debugger-0.12.0 spec/input_responders/facts_spec.rb
puppet-debugger-0.11.0 spec/input_responders/facts_spec.rb
puppet-debugger-0.10.3 spec/input_responders/facts_spec.rb
puppet-debugger-0.10.2 spec/input_responders/facts_spec.rb
puppet-debugger-0.10.1 spec/input_responders/facts_spec.rb
puppet-debugger-0.10.0 spec/input_responders/facts_spec.rb
puppet-debugger-0.9.1 spec/input_responders/facts_spec.rb
puppet-debugger-0.9.0 spec/input_responders/facts_spec.rb