Skip to content

Commit 720eb2b

Browse files
authored
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 <top (required)>'.
1 parent e0be8bf commit 720eb2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/spec_helper.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
require 'vimrunner'
22
require 'vimrunner/rspec'
33

4+
# Explicitly enable usage of "should".
5+
RSpec.configure do |config|
6+
config.expect_with(:rspec) { |c| c.syntax = :should }
7+
end
8+
49
Vimrunner::RSpec.configure do |config|
510
# Use a single Vim instance for the test suite. Set to false to use an
611
# instance per test (slower, but can be easier to manage).

0 commit comments

Comments
 (0)