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:
parent
985961769d
commit
d459572c10
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue