mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Re-enable test (with minor cleanup)
This commit is contained in:
parent
ad7f348793
commit
5cefae6f21
1 changed files with 6 additions and 8 deletions
|
@ -83,14 +83,12 @@ describe Pry do
|
|||
o.instance_variable_get(:@x).should == 10
|
||||
end
|
||||
|
||||
# it 'should display error and throw(:breakout) if Pry instance runs out of input' do
|
||||
# catch(:breakout) do
|
||||
# redirect_pry_io(StringIO.new(":nothing\n"), @str_output) do
|
||||
# Pry.new.repl
|
||||
# end
|
||||
# end
|
||||
# @str_output.string.should =~ /Error: Pry ran out of things to read/
|
||||
# end
|
||||
it 'should display error if Pry instance runs out of input' do
|
||||
redirect_pry_io(StringIO.new, @str_output) do
|
||||
Pry.new.repl
|
||||
end
|
||||
@str_output.string.should =~ /Error: Pry ran out of things to read/
|
||||
end
|
||||
|
||||
it 'should make self evaluate to the receiver of the rep session' do
|
||||
o = :john
|
||||
|
|
Loading…
Reference in a new issue