Sha256: f66b7869ac6e3d122130e6ff7c25969f1e704942e0fc830af20c52c013002073

Contents?: true

Size: 340 Bytes

Versions: 6

Compression:

Stored size: 340 Bytes

Contents

if ENV["COVERAGE"]
  require "simplecov"
  SimpleCov.start do
    add_filter "/test/"
  end
end

require "what"

require "minitest/autorun"

def noop(options = {noop: true}, &block)
  return "noop: missing block" unless block

  out = "---"
  Doit.stub :options, options do
    out, _err = capture_io do
      yield
    end
  end
  out
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
doit-1.0.9 test/test_helper.rb
doit-1.0.8 test/test_helper.rb
doit-1.0.7 test/test_helper.rb
doit-1.0.5 test/test_helper.rb
doit-1.0.4 test/test_helper.rb
doit-1.0.3 test/test_helper.rb