diff --git a/ChangeLog b/ChangeLog index f6e39fe1d0..a1d6ed0701 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri May 30 23:55:56 2008 Kazuhiro NISHIYAMA + + * test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION. + Fri May 30 22:47:17 2008 Yusuke Endoh * test/ruby/test_regexp.rb: add tests. diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 3304a17ebf..3f459f60a3 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -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|