mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test update for version string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a1261995e
commit
8de603784a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue