diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-17 01:26:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-17 01:26:22 +0000 |
commit | d459572c10d4f8a63a659278266facaf99293267 (patch) | |
tree | 8678023cf919367803d2567533b1e0d2cd93a80e /test/ruby/test_exception.rb | |
parent | 985961769d4a4684300ec05602fd7d82c7a29e38 (diff) | |
download | ruby-d459572c10d4f8a63a659278266facaf99293267.tar.gz |
test for wrong order: option
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 216d8a4477..8784dd7dd7 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -1304,6 +1304,10 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status| assert_operator(message, :start_with?, remark) assert_operator(message, :end_with?, bottom) + assert_raise_with_message(ArgumentError, /:top or :bottom/) { + e.full_message(highlight: false, order: :middle) + } + message = e.full_message(highlight: true) assert_match(/\e/, message) |