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:
parent
f091b4fa9b
commit
a8f152ecac
1 changed files with 4 additions and 2 deletions
|
@ -225,14 +225,16 @@ describe "Pry::Commands" do
|
||||||
$str_output = StringIO.new
|
$str_output = StringIO.new
|
||||||
|
|
||||||
o = Object.new
|
o = Object.new
|
||||||
|
|
||||||
|
# sample comment
|
||||||
def o.sample
|
def o.sample
|
||||||
redirect_pry_io(InputTester.new("show-doc", "exit-all"), $str_output) do
|
redirect_pry_io(InputTester.new("show-doc", "exit-all"), $str_output) do
|
||||||
binding.pry
|
binding.pry
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
o.sample
|
o.sample
|
||||||
|
|
||||||
$str_output.string.should =~ /sample doc/
|
$str_output.string.should =~ /sample comment/
|
||||||
$str_output = nil
|
$str_output = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue