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

[ruby/reline] use assert_nothing_raised

https://github.com/ruby/reline/commit/f08be5da09
This commit is contained in:
Otávio Schwanck dos Santos 2022-09-21 15:39:21 +01:00 committed by git
parent 696e8914b7
commit 4bdd8f2ddf

View file

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