ruby-changes:5214
From: kazu <ko1@a...>
Date: Fri, 30 May 2008 23:57:11 +0900 (JST)
Subject: [ruby-changes:5214] Ruby:r16709 (trunk): * test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.
kazu 2008-05-30 23:56:56 +0900 (Fri, 30 May 2008) New Revision: 16709 Modified files: trunk/ChangeLog trunk/test/ruby/test_rubyoptions.rb Log: * test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16709&r2=16708&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_rubyoptions.rb?r1=16709&r2=16708&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 16708) +++ ChangeLog (revision 16709) @@ -1,3 +1,7 @@ +Fri May 30 23:55:56 2008 Kazuhiro NISHIYAMA <zn@m...> + + * test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION. + Fri May 30 22:47:17 2008 Yusuke Endoh <mame@t...> * test/ruby/test_regexp.rb: add tests. Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 16708) +++ test/ruby/test_rubyoptions.rb (revision 16709) @@ -84,7 +84,9 @@ 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| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/