mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_ast.rb: no base directory name
* test/-ext-/ast/test_ast.rb: exclude base directory name from test method names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
640c3dbfa1
commit
2f5a20ce0d
1 changed files with 4 additions and 4 deletions
|
@ -112,18 +112,18 @@ class TestAst < Test::Unit::TestCase
|
|||
|
||||
SRCDIR = File.expand_path("../../../..", __FILE__)
|
||||
|
||||
Dir.glob("#{SRCDIR}/test/**/*.rb").each do |path|
|
||||
Dir.glob("test/**/*.rb", base: SRCDIR).each do |path|
|
||||
define_method("test_ranges:#{path}") do
|
||||
helper = Helper.new(path)
|
||||
helper = Helper.new("#{SRCDIR}/#{path}")
|
||||
helper.validate_range
|
||||
|
||||
assert_equal([], helper.errors)
|
||||
end
|
||||
end
|
||||
|
||||
Dir.glob("#{SRCDIR}/test/**/*.rb").each do |path|
|
||||
Dir.glob("test/**/*.rb", base: SRCDIR).each do |path|
|
||||
define_method("test_not_cared:#{path}") do
|
||||
helper = Helper.new(path)
|
||||
helper = Helper.new("#{SRCDIR}/#{path}")
|
||||
helper.validate_not_cared
|
||||
|
||||
assert_equal([], helper.errors)
|
||||
|
|
Loading…
Add table
Reference in a new issue