Sha256: df73c5098a440069ee63a07077858ab12ce531ed681299711eb4a16493f190a9

Contents?: true

Size: 319 Bytes

Versions: 2

Compression:

Stored size: 319 Bytes

Contents

require 'helper'

describe "!" do
  before do
    @t = pry_tester
  end

  it 'should correctly clear the input buffer ' do
    @t.push unindent(<<-STR)
      def hello
        puts :bing
    STR

    @t.process_command '!'
    @t.last_output.should =~ /Input buffer cleared!/
    @t.eval_string.should == ''
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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