Sha256: 4ae188d1c82c1d2476aa03b716837994c7252b5d143243792da1bcd15741b63d

Contents?: true

Size: 351 Bytes

Versions: 2

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
    @t.push *unindent(<<-STR).split("\n")
      def hello
        puts :bing
    STR

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pry-1.0.0.pre1-i386-mswin32 spec/commands/show_input_spec.rb
pry-1.0.0.pre1-i386-mingw32 spec/commands/show_input_spec.rb