Sha256: 644961d0b55d8463a0fdc801e96d10065a964286ebf08e7037f68b0d64ae97ef
Contents?: true
Size: 884 Bytes
Versions: 5
Compression:
Stored size: 884 Bytes
Contents
# frozen_string_literal: true 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
5 entries across 5 versions & 1 rubygems