diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-17 06:38:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-17 06:38:08 +0000 |
commit | 2f5a20ce0dd2c3065edac35a4bc0c9cdb74f3e0c (patch) | |
tree | 010db15011685849a42a910ba6b83479bcd4b210 /test/-ext- | |
parent | 640c3dbfa1a0f7eb908fd8f378f3caa42076a704 (diff) | |
download | ruby-2f5a20ce0dd2c3065edac35a4bc0c9cdb74f3e0c.tar.gz |
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
Diffstat (limited to 'test/-ext-')
-rw-r--r-- | test/-ext-/ast/test_ast.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/-ext-/ast/test_ast.rb b/test/-ext-/ast/test_ast.rb index 5f107480b1..d5bdff154a 100644 --- a/test/-ext-/ast/test_ast.rb +++ b/test/-ext-/ast/test_ast.rb @@ -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) |