config/rspec.yml in rubocop-govuk-5.0.0 vs config/rspec.yml in rubocop-govuk-5.0.1
- old
+ new
@@ -29,10 +29,17 @@
RSpec/InstanceVariable:
Exclude:
- 'spec/features/**/*.rb'
- 'spec/system/**/*.rb'
+# The GOV.UK Feature spec style has expectations in method calls so this
+# cop falsely triggers.
+RSpec/NoExpectationExample:
+ Exclude:
+ - 'spec/features/**/*.rb'
+ - 'spec/system/**/*.rb'
+
# In GOV.UK we quite often test that a class received a method.
RSpec/MessageSpies:
Enabled: false
# Analog of: 736b3d295f88b9ba6676fc168b823535582388c2
@@ -54,10 +61,10 @@
# 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
+ # Disables all Capybara-specific methods that have the same native
# RSpec method (e.g. are just aliases)
PreferredMethods:
background: :before
scenario: :it
xscenario: :xit