Skip to content

Commit

Permalink
Add Capybara which was extracted from rubocop-rspec
Browse files Browse the repository at this point in the history
In version rubocop-rspec 3.x cop departments are extracted to another gem
(Capybara, FactoryBot, Rails)
https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html

The comment is split out to appease "Missing comment/explanation for Cop"
warning.
  • Loading branch information
AgaDufrat committed Jun 13, 2024
1 parent 9a277a8 commit 4ec3e56
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/capybara.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
require: rubocop-capybara

# Within GOV.UK we use Capybara test method syntax of feature,
# scenario. We don't want this outside of feature or system specs though.
# scenario.
Capybara:
Enabled: true

# We don't want this cop outside of feature or system specs though.
RSpec/Dialect:
Exclude:
- 'spec/features/**/*.rb'
Expand Down
1 change: 1 addition & 0 deletions rubocop-govuk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "rubocop", "1.64.1"
spec.add_dependency "rubocop-ast", "1.31.3"
spec.add_dependency "rubocop-capybara", "2.21.0"
spec.add_dependency "rubocop-rails", "2.25.0"
spec.add_dependency "rubocop-rake", "0.6.0"
spec.add_dependency "rubocop-rspec", "3.0.1"
Expand Down

0 comments on commit 4ec3e56

Please sign in to comment.