1
0
Fork 0
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:
Ryan Fitzgerald 2012-09-05 23:46:18 -07:00
parent ad7f348793
commit 5cefae6f21

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