Top Level Namespace

Defined Under Namespace

Modules: ReeActions, ReeArray, ReeDao, ReeDaoAggTest, ReeDate, ReeDatetime, ReeDto, ReeEnum, ReeErrors, ReeHash, ReeHttp, ReeI18n, ReeJson, ReeLib, ReeLogger, ReeMapper, ReeMigrator, ReeMigratorTest, ReeNumber, ReeObject, ReeRoda, ReeRoutes, ReeStd, ReeString, ReeSwagger, ReeText, ReeValidator, ThreadParent Classes: Roda, Thread

Instance Method Summary collapse

Instance Method Details

#with_captured_stdoutObject



5
6
7
8
9
10
11
12
# File 'lib/ree_lib/packages/ree_logger/spec/spec_helper.rb', line 5

def with_captured_stdout
  original_stdout = $stdout
  $stdout = StringIO.new
  yield
  $stdout.string
ensure
  $stdout = original_stdout
end