aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-10 11:58:58 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-10 11:58:58 +0000
commit8de603784a5e9abee3a33e47b7dd226952e161ef (patch)
treef62e7fdc5cedde8ee9ef132a19bbbd155cf51823
parent8a1261995ea0b4b68c96ea99cbe3832d8d6f2466 (diff)
downloadruby-8de603784a5e9abee3a33e47b7dd226952e161ef.tar.gz
test update for version string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_rubyoptions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index c55c99d0d1..a540c70ac9 100644
--- a/test/ruby/test_rubyoptions.rb
+++ b/test/ruby/test_rubyoptions.rb
@@ -60,7 +60,7 @@ class TestRubyOptions < Test::Unit::TestCase
def test_verbose
assert_in_out_err(%w(-vve) + [""]) do |r, e|
- assert_match(/^ruby #{RUBY_VERSION} .*? \[#{RUBY_PLATFORM}\]$/, r.join)
+ assert_match(/^ruby #{RUBY_VERSION}[p ].*? \[#{RUBY_PLATFORM}\]$/, r.join)
assert_equal RUBY_DESCRIPTION, r.join.chomp
assert_equal([], e)
end
@@ -106,7 +106,7 @@ class TestRubyOptions < Test::Unit::TestCase
def test_version
assert_in_out_err(%w(--version)) do |r, e|
- assert_match(/^ruby #{RUBY_VERSION} .*? \[#{RUBY_PLATFORM}\]$/, r.join)
+ assert_match(/^ruby #{RUBY_VERSION}[p ].*? \[#{RUBY_PLATFORM}\]$/, r.join)
assert_equal RUBY_DESCRIPTION, r.join.chomp
assert_equal([], e)
end