diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-28 09:02:56 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-28 09:02:56 +0000 |
commit | acacd7a1d3f383fcbdad0bc3151c9aaabb8779c9 (patch) | |
tree | 9b6413ddb83d6935632ebe57eb865ff54e9f68de /test/ruby/test_rubyoptions.rb | |
parent | 0b01776d430422b9ed89e078d93b7db3cb27f235 (diff) |
test_bug_reporter.rb: make it work with --jit
test_rubyoptions.rb: replace gsub with sub because it's suboptimal for
this
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index f7c5c415cf..b7c9d93540 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -110,7 +110,7 @@ class TestRubyOptions < Test::Unit::TestCase assert_in_out_err(["-vve", ""]) do |r, e| assert_match(VERSION_PATTERN, r[0]) description = RUBY_DESCRIPTION - description = description.gsub(/\+JIT /, '') if RubyVM::MJIT.enabled? + description = description.sub(/\+JIT /, '') if RubyVM::MJIT.enabled? assert_equal(description, r[0]) assert_equal([], e) end |