Skip to content

Commit 5fd1228

Browse files
authored
chore(docs): Gem names and troubleshooting for v3 migration instructions
1 parent 2004e4b commit 5fd1228

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/modules/ROOT/pages/upgrade_to_version_3.adoc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ In version 3.x:
1010
[discrete]
1111
=== Extraction of cop departments. (`Capybara`, `FactoryBot`, `Rails`)
1212

13-
If you are using the RSpec/Capybara, RSpec/FactoryBot, or RSpec/Rails departments, you need to install the corresponding gem and add it to your `.rubocop.yml` file.
13+
If you are using the RSpec/Capybara, RSpec/FactoryBot, or RSpec/Rails departments -- or have one in a `require` list in your rubocop.yml -- you need to install the corresponding gem and add it to your `.rubocop.yml` file:
14+
15+
* Capybara: `ubocop-capybara`
16+
* FactoryBot: `rubocop-factory_bot`
17+
* Rails: `rubocop-rspec_rails`
1418

1519
For example, if you are using the RSpec/Capybara department, you need to install the `rubocop-capybara` gem and add it to your `.rubocop.yml` file:
1620

@@ -50,3 +54,7 @@ RSpec/FactoryBot:
5054
RSpec/Rails:
5155
Enabled: false
5256
----
57+
58+
== Troubleshooting
59+
60+
If you're seeing `cannot load such file` when running rubocop, even after installing the gems, try restarting your LSP with `rubocop --restart-server`.

0 commit comments

Comments
 (0)