зеркало из https://github.com/github/ruby.git
[ruby/reline] use assert_nothing_raised
https://github.com/ruby/reline/commit/f08be5da09
This commit is contained in:
Родитель
696e8914b7
Коммит
4bdd8f2ddf
|
@ -1458,12 +1458,8 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase
|
|||
def test_vi_motion_operators
|
||||
assert_instance_of(Reline::KeyActor::ViInsert, @config.editing_mode)
|
||||
|
||||
begin
|
||||
assert_nothing_raised do
|
||||
input_keys("test = { foo: bar }\C-[BBBldt}b")
|
||||
|
||||
assert true
|
||||
rescue NoMethodError
|
||||
assert false
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче