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.12.2 spec/commands/show_input_spec.rb
pry-0.9.12.2-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12.2-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12.2-java spec/commands/show_input_spec.rb
pry-0.9.12.2pre1 spec/commands/show_input_spec.rb
pry-0.9.12.2pre1-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12.2pre1-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12.2pre1-java spec/commands/show_input_spec.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/show_input_spec.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/pry-0.9.12.1/spec/commands/show_input_spec.rb
pry-0.9.12.1 spec/commands/show_input_spec.rb
pry-0.9.12.1-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12.1-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12.1-java spec/commands/show_input_spec.rb
pry-0.9.12.1pre1 spec/commands/show_input_spec.rb
pry-0.9.12.1pre1-i386-mswin32 spec/commands/show_input_spec.rb
pry-0.9.12.1pre1-i386-mingw32 spec/commands/show_input_spec.rb
pry-0.9.12.1pre1-java spec/commands/show_input_spec.rb
torquebox-console-0.2.5 vendor/bundle/jruby/1.9/gems/pry-0.9.12-java/spec/commands/show_input_spec.rb
torquebox-console-0.2.4 vendor/bundle/jruby/1.9/gems/pry-0.9.12-java/spec/commands/show_input_spec.rb