diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2018-12-12 22:11:00 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2018-12-12 22:11:00 +0100 |
commit | 315769ae6dc3b3c7613f8e3f2f78fbe24b950477 (patch) | |
tree | ac7cb5c113364f78052240cf6b90229d354f120a | |
parent | 5062d8e0dd47aa36c568bf8763d6f9054cbcec97 (diff) | |
download | rneovim-315769ae6dc3b3c7613f8e3f2f78fbe24b950477.tar.gz rneovim-315769ae6dc3b3c7613f8e3f2f78fbe24b950477.tar.bz2 rneovim-315769ae6dc3b3c7613f8e3f2f78fbe24b950477.zip |
test: :ruby reports E319 if provider is missing
-rw-r--r-- | test/functional/provider/ruby_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/provider/ruby_spec.lua b/test/functional/provider/ruby_spec.lua index e049ac7c41..40cfe80b50 100644 --- a/test/functional/provider/ruby_spec.lua +++ b/test/functional/provider/ruby_spec.lua @@ -6,6 +6,7 @@ local curbufmeths = helpers.curbufmeths local eq = helpers.eq local eval = helpers.eval local expect = helpers.expect +local expect_err = helpers.expect_err local feed = helpers.feed local feed_command = helpers.feed_command local funcs = helpers.funcs @@ -17,6 +18,10 @@ local write_file = helpers.write_file do clear() if missing_provider('ruby') then + it(':ruby reports E319 if provider is missing', function() + expect_err([[Vim%(ruby%):E319: No "ruby" provider found.*]], + command, 'ruby puts "foo"') + end) pending("Missing neovim RubyGem.", function() end) return end |