diff options
Diffstat (limited to 'test/ruby/test_system.rb')
-rw-r--r-- | test/ruby/test_system.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb index d756e4a2d5..71eb7ad183 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -61,8 +61,8 @@ class TestSystem < Test::Unit::TestCase dir << "/" end - for script in Dir["#{dir}{lib,sample,ext}/**/*.rb"] - assert_nothing_raised(Exception) do + assert_nothing_raised(Exception) do + for script in Dir["#{dir}{lib,sample,ext}/**/*.rb"] valid_syntax? IO::read(script), script end end |