Sha256: 17069c3a84f288a4ba7728180f6b59777dc219bdfad88c08df1dea16461abb05

Contents?: true

Size: 278 Bytes

Versions: 8

Compression:

Stored size: 278 Bytes

Contents

$LOAD_PATH.unshift(File.expand_path("../..", __FILE__))

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

8 entries across 8 versions & 1 rubygems

Version Path
ns-options-1.1.1 test/helper.rb
ns-options-1.1.0 test/helper.rb
ns-options-1.0.1 test/helper.rb
ns-options-1.0.0 test/helper.rb
ns-options-1.0.0.rc4 test/helper.rb
ns-options-1.0.0.rc3 test/helper.rb
ns-options-1.0.0.rc2 test/helper.rb
ns-options-1.0.0.rc1 test/helper.rb