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:
parent
d9b64c7f2a
commit
d667b3aa3a
1 changed files with 10 additions and 0 deletions
10
test/test.rb
10
test/test.rb
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue