config/rspec.yml in rubocop-govuk-4.18.0 vs config/rspec.yml in rubocop-govuk-5.0.0

- old
+ new

@@ -49,5 +49,22 @@ - when - with - without - and - but + +# Within GOV.UK we use Capybara test method syntax of feature, +# scenario. +# We don't want this cop outside of feature or system specs though. +RSpec/Dialect: + # Disables all Capybara-specific methods that have the same native + # RSpec method (e.g. are just aliases) + PreferredMethods: + background: :before + scenario: :it + xscenario: :xit + given: :let + given!: :let! + feature: :describe + Exclude: + - 'spec/features/**/*.rb' + - 'spec/system/**/*.rb'