From: Daniel Hahler Date: Sat, 7 Oct 2017 19:29:10 +0000 (+0200) Subject: tests: explicitly enable old "should" syntax to fix deprecation warnings (#92) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/720eb2b9821a4147dbd124ff595e36fa2b9b45b2 tests: explicitly enable old "should" syntax to fix deprecation warnings (#92) > Deprecation Warnings: > > Using `should` from rspec-expectations' old `:should` syntax without > explicitly enabling the syntax is deprecated. Use the new `:expect` > syntax or explicitly enable `:should` with `config.expect_with(:rspec) { > |c| c.syntax = :should }` instead. Called from > …/vim-python-pep8-indent/spec/indent/indent_spec.rb:141:in > `block (3 levels) in '. --- diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9191526..8636f41 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,6 +1,11 @@ require 'vimrunner' require 'vimrunner/rspec' +# Explicitly enable usage of "should". +RSpec.configure do |config| + config.expect_with(:rspec) { |c| c.syntax = :should } +end + Vimrunner::RSpec.configure do |config| # Use a single Vim instance for the test suite. Set to false to use an # instance per test (slower, but can be easier to manage).