1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_syntax.rb (TestSyntax#test_syntax): show script name

in assertion message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-06-01 06:41:33 +00:00
parent 19a8b5cbdc
commit d441e3b959

View file

@ -15,7 +15,7 @@ class TestSyntax < Test::Unit::TestCase
def test_syntax
assert_nothing_raised(Exception) do
for script in Dir[File.expand_path("../../../{lib,sample,ext,test}/**/*.rb", __FILE__)].sort
assert(valid_syntax?(IO::read(script), script))
assert(valid_syntax?(IO::read(script), script), script)
end
end
end