Sha256: ffbe84042d0675edf13e65505c46de1eaa296d51293e73b69a9005e9c683e810

Contents?: true

Size: 545 Bytes

Versions: 22

Compression:

Stored size: 545 Bytes

Contents

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

describe :whereami do
  include_examples 'plugin_tests'
  let(:input) do
    File.expand_path File.join(fixtures_dir, 'sample_start_debugger.pp')
  end
  let(:options) do
    {
      source_file: input,
      source_line: 10
    }
  end

  before(:each) do
    debugger.handle_input('whereami')
  end

  it 'runs' do
    expect(output.string).to match(/\s+5/)
  end

  it 'contains marker' do
    expect(output.string).to match(/\s+=>\s10/)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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