Sha256: 63567b9fb0b1afe2c5294a71c133c430ba8db04dae98bebfc4e7a44f416f24a0

Contents?: true

Size: 351 Bytes

Versions: 77

Compression:

Stored size: 351 Bytes

Contents

require 'helper'

describe "show-input" do
  before do
    @t = pry_tester
  end

  it 'should correctly show the current lines in the input buffer' do
    eval_str = unindent(<<-STR)
      def hello
        puts :bing
    STR

    @t.process_command 'show-input', eval_str
    @t.last_output.should =~ /\A\d+: def hello\n\d+:   puts :bing/
  end
end

Version data entries

77 entries across 77 versions & 5 rubygems

Version Path
torquebox-console-0.2.3 vendor/bundle/jruby/1.9/gems/pry-0.9.12-java/spec/commands/show_input_spec.rb
pry-0.9.12 spec/commands/show_input_spec.rb
pry-0.9.12-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12-java spec/commands/show_input_spec.rb
pry-0.9.12pre3 spec/commands/show_input_spec.rb
pry-0.9.12pre3-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12pre3-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12pre3-java spec/commands/show_input_spec.rb
pry-0.9.12pre2 spec/commands/show_input_spec.rb
pry-0.9.12pre2-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12pre2-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12pre2-java spec/commands/show_input_spec.rb
pry-0.9.12pre1 spec/commands/show_input_spec.rb
pry-0.9.12pre1-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12pre1-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12pre1-java spec/commands/show_input_spec.rb
pry-0.9.11.4 spec/commands/show_input_spec.rb
pry-0.9.11.4-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.11.4-i386-mingw32 spec/commands/show_input_spec.rb