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

fixed a failing test for rbx (actually a failing test in general, but only spotted thanks to rbx)

This commit is contained in:
John Mair 2011-06-02 04:23:17 +12:00
parent f091b4fa9b
commit a8f152ecac

View file

@ -225,14 +225,16 @@ describe "Pry::Commands" do
$str_output = StringIO.new
o = Object.new
# sample comment
def o.sample
redirect_pry_io(InputTester.new("show-doc", "exit-all"), $str_output) do
binding.pry
end
end
end
o.sample
$str_output.string.should =~ /sample doc/
$str_output.string.should =~ /sample comment/
$str_output = nil
end
end