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
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/show_input_spec.rb
pry-0.9.12.6 spec/commands/show_input_spec.rb
pry-0.9.12.6-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12.6-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12.6-java spec/commands/show_input_spec.rb
pry-0.9.12.5 spec/commands/show_input_spec.rb
pry-0.9.12.5-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12.5-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12.5-java spec/commands/show_input_spec.rb
pry-0.9.12.4 spec/commands/show_input_spec.rb
pry-0.9.12.4-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12.4-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12.4-java spec/commands/show_input_spec.rb
pry-0.9.12.3 spec/commands/show_input_spec.rb
pry-0.9.12.3-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12.3-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12.3-java spec/commands/show_input_spec.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/pry-0.9.12-java/spec/commands/show_input_spec.rb
sshp-0.0.2 vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/show_input_spec.rb
sshp-0.0.1 vendor/ruby/1.9.1/gems/pry-0.9.12.2/spec/commands/show_input_spec.rb