[ruby/reline] use assert_nothing_raised
https://github.com/ruby/reline/commit/f08be5da09
This commit is contained in:
parent
696e8914b7
commit
4bdd8f2ddf
@ -1458,12 +1458,8 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase
|
|||||||
def test_vi_motion_operators
|
def test_vi_motion_operators
|
||||||
assert_instance_of(Reline::KeyActor::ViInsert, @config.editing_mode)
|
assert_instance_of(Reline::KeyActor::ViInsert, @config.editing_mode)
|
||||||
|
|
||||||
begin
|
assert_nothing_raised do
|
||||||
input_keys("test = { foo: bar }\C-[BBBldt}b")
|
input_keys("test = { foo: bar }\C-[BBBldt}b")
|
||||||
|
|
||||||
assert true
|
|
||||||
rescue NoMethodError
|
|
||||||
assert false
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user