Sha256: a60b86358a4275200596949eac65e35d1e018ca86eca4b81f4e3a3d93bb224e9

Contents?: true

Size: 529 Bytes

Versions: 8

Compression:

Stored size: 529 Bytes

Contents

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

describe :functions do
  include_examples 'plugin_tests'
  let(:input) do
    "md5('hello')"
  end
  it 'execute md5' do
    debugger_output = /5d41402abc4b2a76b9719d911017c592/
    debugger.handle_input(input)
    expect(output.string).to match(debugger_output)
  end
  it 'execute swapcase' do
    debugger_output = /HELLO/
    debugger.handle_input("swapcase('hello')")
    expect(output.string).to match(debugger_output)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puppet-debugger-0.10.3 spec/input_responders/functions_spec.rb
puppet-debugger-0.10.2 spec/input_responders/functions_spec.rb
puppet-debugger-0.10.1 spec/input_responders/functions_spec.rb
puppet-debugger-0.10.0 spec/input_responders/functions_spec.rb
puppet-debugger-0.9.1 spec/input_responders/functions_spec.rb
puppet-debugger-0.9.0 spec/input_responders/functions_spec.rb
puppet-debugger-0.8.1 spec/input_responders/functions_spec.rb
puppet-debugger-0.8.0 spec/input_responders/functions_spec.rb