Sha256: c198bd18c39eeeb1931b4faf00b6bc3683b2576392add6a4620c612d94d2e2e3

Contents?: true

Size: 551 Bytes

Versions: 22

Compression:

Stored size: 551 Bytes

Contents

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

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

  it do
    expect(plugin.run(args)).to match(/environment/)
  end

  it 'run a plugin command' do
    debugger.handle_input('help')
    expect(output.string).to match(/Type "commands" for a list of debugger commands/)
  end

  it 'show error when command does not exist' do
    debugger.handle_input('helpp')
    expect(output.string).to match(/invalid command helpp/)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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