Module: Minitest

Defined in:
lib/minitest/rematch_plugin.rb

Overview

Implement the minitest plugin

Defined Under Namespace

Modules: Assertions Classes: Test

Class Method Summary collapse

Class Method Details

.plugin_rematch_options(opts, _options) ⇒ Object

Set Rematch.rebuild with the --rematch-rebuild



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/minitest/rematch_plugin.rb', line 8

def self.plugin_rematch_options(opts, _options)
  opts.on '--rematch-rebuild', 'Rebuild the stores with the current entries/values' do
    Rematch.rebuild      = true
    Rematch.skip_warning = true
  end
  # :nocov:
  opts.on '--rematch-skip-warning', 'Skip the warning on storing a new value' do
    Rematch.skip_warning = true
  end
  # :nocov:
end