Sha256: 318298b28fc54861a786f3e50e4da75c3ab5444f3a230acebceb1d17c375fe47

Contents?: true

Size: 299 Bytes

Versions: 9

Compression:

Stored size: 299 Bytes

Contents

require 'rspec'
require 'stringio'

def capture_stdout
  capture = StringIO.new
  restore, $stdout = $stdout, capture
  yield
  $stdout = restore
  capture.string
end

def capture_stderr
  capture = StringIO.new
  restore, $stderr = $stderr, capture
  yield
  $stderr = restore
  capture.string
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
debugging-2.1.0 spec/spec_helper.rb
debugging-2.0.0 spec/spec_helper.rb
debugging-1.1.2 spec/spec_helper.rb
debugging-1.1.1 spec/spec_helper.rb
debugging-1.1.0 spec/spec_helper.rb
debugging-1.0.2 spec/spec_helper.rb
procstar-1.0.0 spec/spec_helper.rb
debugging-1.0.1 spec/spec_helper.rb
debugging-1.0.0 spec/spec_helper.rb