summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_rubyoptions.rb
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-30 14:56:56 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-30 14:56:56 +0000
commit714dbed8b217ff179088176213f06b8dffb28d0a (patch)
treec5e4aa4c1b4274f43643c2bad6f46d1c6c442fdb /test/ruby/test_rubyoptions.rb
parent7d962816a50344ef522e8e47e9d65b2dcd86e311 (diff)
downloadruby-714dbed8b217ff179088176213f06b8dffb28d0a.tar.gz
ruby-714dbed8b217ff179088176213f06b8dffb28d0a.tar.xz
ruby-714dbed8b217ff179088176213f06b8dffb28d0a.zip
* test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r--test/ruby/test_rubyoptions.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb
index 3304a17eb..3f459f60a 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|