1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

added failing test for semi-colon suppresion not working with Exception objects, must fix

This commit is contained in:
John Mair 2011-04-17 19:26:05 +12:00
parent d9b64c7f2a
commit d667b3aa3a

View file

@ -56,6 +56,15 @@ describe Pry do
Hello.const_defined?(:Nested).should == true
end
it 'should suppress output if input ends in a ";" and is an Exception object (single line)' do
o = Object.new
str_output = StringIO.new
pry_tester = Pry.new(:input => InputTester.new("Exception.new;"), :output => str_output)
pry_tester.rep(o)
str_output.string.should == ""
end
it 'should suppress output if input ends in a ";" (single line)' do
o = Object.new
str_output = StringIO.new
@ -64,6 +73,7 @@ describe Pry do
pry_tester.rep(o)
str_output.string.should == ""
end
it 'should suppress output if input ends in a ";" (multi-line)' do
o = Object.new