Sha256: 3a42ce903c4b825fb4866d57b8ee94fc33bd4c3084ea992288ce4aff2160f356

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

# this file is automatically required when you run `assert`
# put any test helpers here

# add the root dir to the load path
ROOT_PATH = File.expand_path("../..", __FILE__)
$LOAD_PATH.unshift(ROOT_PATH)

# require pry for debugging (`binding.pry`)
require 'pry'

module NsOptions
  module TestOutput

    module_function

    def capture
      out = ""
      io = StringIO.new(out)
      $stdout = io
      yield
      return out
    ensure
      $stdout = STDOUT
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ns-options-1.1.6 test/helper.rb
ns-options-1.1.5 test/helper.rb
ns-options-1.1.4 test/helper.rb
ns-options-1.1.3 test/helper.rb
ns-options-1.1.2 test/helper.rb