diff options
Diffstat (limited to 'test/ruby/test_system.rb')
-rw-r--r-- | test/ruby/test_system.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb index 826c615cd3..298f3c0435 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -42,7 +42,7 @@ class TestSystem < Test::Unit::TestCase end tmp.close - `#{ruby} -i.bak -pe 'sub(/^[0-9]+$/){$&.to_i * 5}' script_tmp` + `#{ruby} -i.bak -pe '$_.sub!(/^[0-9]+$/){$&.to_i * 5}' script_tmp` tmp = open("script_tmp", "r") while tmp.gets assert_equal(0, $_.to_i % 5) |