Sha256: a2924d3a5c39c0a32f8dfbeb7ca1197fa702fc72f91a45fcfcdc44c711b434b3

Contents?: true

Size: 335 Bytes

Versions: 3

Compression:

Stored size: 335 Bytes

Contents

require 'simplecov'
SimpleCov.start do
  add_filter 'test'
  command_name 'Minitest'
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

3 entries across 3 versions & 1 rubygems

Version Path
doit-1.0.1 test/test_helper.rb
doit-0.3.9 test/test_helper.rb
doit-0.3.6 test/test_helper.rb