Skip to content

Commit

Permalink
Remove RSpec/Capybara/FeatureMethods
Browse files Browse the repository at this point in the history
Fix: #1852
  • Loading branch information
ydah committed May 3, 2024
1 parent 0d51335 commit ca1b356
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 267 deletions.
17 changes: 8 additions & 9 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,15 @@ RSpec/DescribedClassModuleWrapping:
RSpec/Dialect:
Description: Enforces custom RSpec dialects.
Enabled: false
PreferredMethods: {}
PreferredMethods:
background: before
scenario: it
xscenario: xit
given: let
given!: let!
feature: describe
VersionAdded: '1.33'
VersionChanged: "<<next>>"
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Dialect

RSpec/DuplicatedMetadata:
Expand Down Expand Up @@ -1018,14 +1025,6 @@ RSpec/Capybara/CurrentPathExpectation:
VersionChanged: '2.0'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/CurrentPathExpectation

RSpec/Capybara/FeatureMethods:
Description: Checks for consistent method usage in feature specs.
Enabled: true
EnabledMethods: []
VersionAdded: '1.17'
VersionChanged: '2.0'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/FeatureMethods

RSpec/Capybara/MatchStyle:
Description: Checks for usage of deprecated style methods.
Enabled: pending
Expand Down
6 changes: 6 additions & 0 deletions config/obsoletion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,9 @@ renamed:
RSpec/Rails/MinitestAssertions: RSpecRails/MinitestAssertions
RSpec/Rails/NegationBeValid: RSpecRails/NegationBeValid
RSpec/Rails/TravelAround: RSpecRails/TravelAround

removed:
RSpec/Capybara/FeatureMethods:
reason: >
this cop has migrated to `RSpec/Dialect`. Please use `RSpec/Dialect` instead.
in .rubocop.yml file, enable `RSpec/Dialect`.
104 changes: 0 additions & 104 deletions lib/rubocop/cop/rspec/capybara/feature_methods.rb

This file was deleted.

1 change: 0 additions & 1 deletion lib/rubocop/cop/rspec_cops.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# frozen_string_literal: true

require_relative 'rspec/capybara/current_path_expectation'
require_relative 'rspec/capybara/feature_methods'
require_relative 'rspec/capybara/match_style'
require_relative 'rspec/capybara/negation_matcher'
require_relative 'rspec/capybara/specific_actions'
Expand Down
153 changes: 0 additions & 153 deletions spec/rubocop/cop/rspec/capybara/feature_methods_spec.rb

This file was deleted.

0 comments on commit ca1b356

Please sign in to comment.