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
-
.plugin_rematch_options(opts, _options) ⇒ Object
Set Rematch.rebuild with the --rematch-rebuild.
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.(opts, ) 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 |