diff options
Diffstat (limited to 'test')
-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| |