Sha256: 496b90ed585d826f7c311ddc60f6cdd138ef257ba04bcf23871456a793d67108

Contents?: true

Size: 853 Bytes

Versions: 22

Compression:

Stored size: 853 Bytes

Contents

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

describe :reset do
  include_examples 'plugin_tests'
  let(:args) { [] }

  it 'can process a file' do
    debugger_output = /Puppet::Type::File/
    debugger.handle_input("file{'/tmp/reset': ensure => present}")
    expect(output.string).to match(debugger_output)
    debugger.handle_input('reset')
    expect(output.string).to match(debugger_output)
  end

  describe 'loglevel' do
    it 'has not changed' do
      debugger.handle_input(':set loglevel debug')
      expect(Puppet::Util::Log.level).to eq(:debug)
      expect(Puppet::Util::Log.destinations[:buffer].name).to eq(:buffer)
      plugin.run('reset')
      expect(Puppet::Util::Log.level).to eq(:debug)
      expect(Puppet::Util::Log.destinations[:buffer].name).to eq(:buffer)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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