Re-enable test (with minor cleanup)

This commit is contained in:
Ryan Fitzgerald 2012-09-05 23:46:18 -07:00
parent ad7f348793
commit 5cefae6f21
1 changed files with 6 additions and 8 deletions

View File

@ -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