diff --git a/test/test_default_commands.rb b/test/test_default_commands.rb index 1ac369ff..dc92230b 100644 --- a/test/test_default_commands.rb +++ b/test/test_default_commands.rb @@ -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