mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
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:
parent
c2d38a0d2d
commit
ab3cb29bd9
Notes:
git
2022-04-23 07:00:43 +09:00
47 changed files with 1282 additions and 1358 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue