summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_rubyoptions.rb
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
commit04ee24a16807b2e7eddf5f1732d1ecc5c5a23cad (patch)
treef62e7fdc5cedde8ee9ef132a19bbbd155cf51823 /test/ruby/test_rubyoptions.rb
parent729d1bc1577d2781ee56ddc13c7871b5df5598f1 (diff)
downloadruby-04ee24a16807b2e7eddf5f1732d1ecc5c5a23cad.tar.gz
ruby-04ee24a16807b2e7eddf5f1732d1ecc5c5a23cad.tar.xz
ruby-04ee24a16807b2e7eddf5f1732d1ecc5c5a23cad.zip
test update for version string.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-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 c55c99d0d..a540c70ac 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