spec/run_helper.rb
##
# For code inside the block of #run_tool, only invoke a REPL (like pry) inside
# the block of this function -- otherwise the REPL output will be captured
# by the test harness, you won't see it, and the output of the test will get
# messed up.
#
For code inside the block of #run_tool, only invoke a REPL (like pry) inside
the block of this function -- otherwise the REPL output will be captured
by the test harness, you won't see it, and the output of the test will get
messed up.
For code inside the block of #run_tool only invoke a REPL ( like pry ) inside the block of this function -- otherwise the REPL output will be captured by the test harness you won ' t see it and the output of the test will get messed up .
def allow_prying
  old_stdout, $stdout = $stdout, STDOUT
  begin
    yield
  ensure
    $stdout = old_stdout
  end
end
def allow_prying old_stdout , $stdout = $stdout , STDOUT begin yield ensure $stdout = old_stdout end end
For code inside the block of #run_tool, only invoke a REPL (like pry) inside
the block of this function -- otherwise the REPL output will be captured
by the test harness, you won't see it, and the output of the test will get
messed up.
For code inside the block of #run_tool only invoke a REPL ( like pry ) inside the block of this function -- otherwise the REPL output will be captured by the test harness you won ' t see it and the output of the test will get messed up .