diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 4 |
2 files changed, 7 insertions, 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. 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| |