From 720eb2b9821a4147dbd124ff595e36fa2b9b45b2 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 7 Oct 2017 21:29:10 +0200 Subject: [PATCH 1/1] tests: explicitly enable old "should" syntax to fix deprecation warnings (#92) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit > 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 '. --- spec/spec_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) 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). -- 2.39.5