Avoid defining the same test class in multiple files

Should fix issues with parallel testing sometimes not running all
tests.

This should be viewed skipping whitespace changes.

Fixes [Bug #18731]
This commit is contained in:
Jeremy Evans 2022-04-22 13:01:43 -07:00
parent c2d38a0d2d
commit ab3cb29bd9
Notes: git 2022-04-23 07:00:43 +09:00
47 changed files with 1282 additions and 1358 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: false
require_relative 'test_optparse'
module TestOptionParser::NoArg
module TestOptionParserNoArg
def setup
super
@opt.def_option "--with_underscore" do |x| @flag = x end
@ -9,7 +9,7 @@ module TestOptionParser::NoArg
end
class Def1 < TestOptionParser
include NoArg
include TestOptionParserNoArg
def setup
super
@opt.def_option("-x") {|x| @flag = x}
@ -17,7 +17,7 @@ module TestOptionParser::NoArg
end
end
class Def2 < TestOptionParser
include NoArg
include TestOptionParserNoArg
def setup
super
@opt.def_option("-x", "--option") {|x| @flag = x}