mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c6c0d7671f
commit
f76ee72013
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri May 30 23:55:56 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.
|
||||
|
||||
Fri May 30 22:47:17 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* test/ruby/test_regexp.rb: add tests.
|
||||
|
|
|
@ -84,7 +84,9 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||
|
||||
def test_verbose
|
||||
ruby('-vve', '') do |w, r, e|
|
||||
assert_match(/^ruby #{RUBY_VERSION} .*? \[#{RUBY_PLATFORM}\]$/, r.read)
|
||||
description = r.read
|
||||
assert_match(/^ruby #{RUBY_VERSION} .*? \[#{RUBY_PLATFORM}\]$/, description)
|
||||
assert_equal RUBY_DESCRIPTION, description.chomp
|
||||
end
|
||||
|
||||
ruby('--verbose', '-e', 'p $VERBOSE') do |w, r, e|
|
||||
|
|
Loading…
Add table
Reference in a new issue