Add and apply RSpec/MetadataStyle rubocop rule

This rule was introduced in rubocop-rspec 2.24.0. We were applying it
most of the time.
This commit is contained in:
Javi Martín
2023-10-03 20:36:34 +02:00
parent 013f3282e4
commit b59899e9f7
2 changed files with 4 additions and 1 deletions

View File

@@ -564,6 +564,9 @@ RSpec/LetBeforeExamples:
RSpec/LetSetup:
Enabled: true
RSpec/MetadataStyle:
Enabled: true
RSpec/NotToNot:
Enabled: true

View File

@@ -63,7 +63,7 @@ RSpec.configure do |config|
Capybara.default_set_options = { clear: :backspace }
end
config.before(:each, type: :system, no_js: true) do
config.before(:each, :no_js, type: :system) do
driven_by :rack_test
Capybara.default_set_options = {}
end