diff options
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r-- | lib/test/unit.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index 6c4cecc442..52e67b97ac 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -32,6 +32,7 @@ module Test module Options def initialize(*, &block) @init_hook = block + @options = nil super(&nil) end @@ -232,6 +233,11 @@ module Test alias orig_run_anything _run_anything undef _run_anything + undef options + + def options + @optss ||= (@options||{}).merge(@opts) + end def _run_anything type if @opts[:parallel] && @warnings |