Module: Minitest
- Defined in:
- lib/maxitest/vendor/rg.rb
Defined Under Namespace
Class Method Summary collapse
-
.plugin_rg_init(options) ⇒ Object
:nodoc:.
-
.plugin_rg_options(opts, _options) ⇒ Object
:nodoc:.
Class Method Details
.plugin_rg_init(options) ⇒ Object
:nodoc:
39 40 41 42 43 44 45 |
# File 'lib/maxitest/vendor/rg.rb', line 39 def self.plugin_rg_init # :nodoc: return unless RG.rg? io = RG.new [:io] reporter.reporters.grep(Minitest::Reporter).each { |rep| rep.io = io } end |
.plugin_rg_options(opts, _options) ⇒ Object
:nodoc:
33 34 35 36 37 |
# File 'lib/maxitest/vendor/rg.rb', line 33 def self. opts, # :nodoc: opts.on "--[no-]rg", "Add red/green to test output." do |bool| RG.rg! color: bool end end |