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
pry-0.9.11.4-java spec/commands/show_input_spec.rb
pry-0.9.11.3 spec/commands/show_input_spec.rb
pry-0.9.11.3-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.11.3-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.11.3-java spec/commands/show_input_spec.rb
pry-0.9.11.2 spec/commands/show_input_spec.rb
pry-0.9.11.2-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.11.2-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.11.2-java spec/commands/show_input_spec.rb
pry-0.9.11.1 spec/commands/show_input_spec.rb
pry-0.9.11.1-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.11.1-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.11.1-java spec/commands/show_input_spec.rb
pry-0.9.11 spec/commands/show_input_spec.rb
pry-0.9.11-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.11-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.11-java spec/commands/show_input_spec.rb