1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test for wrong order: option

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-07-17 01:26:22 +00:00
parent 985961769d
commit d459572c10

View file

@ -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)