diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-30 14:56:56 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-30 14:56:56 +0000 |
commit | f76ee7201393a3d2f80fe7c1abdeab8b5af5f4cb (patch) | |
tree | c5e4aa4c1b4274f43643c2bad6f46d1c6c442fdb /test/ruby | |
parent | c6c0d7671fd47690513d413d8d6b3e92db07e2c8 (diff) | |
download | ruby-f76ee7201393a3d2f80fe7c1abdeab8b5af5f4cb.tar.gz |
* 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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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| |