Skip to content

Commit

Permalink
Update docs/modules/ROOT/pages/upgrade_to_version_2.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Quorning <22333+bquorning@users.noreply.github.com>
  • Loading branch information
pirj and bquorning committed Oct 22, 2020
1 parent f1b7f85 commit a07ba4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/upgrade_to_version_2.adoc
Expand Up @@ -109,7 +109,7 @@ https://github.com/rubocop-hq/rubocop-rspec/pull/962[Example pull request].
`TopLevelDescribe` was incomplete, had poor performance and did not distinguish between example groups and shared example groups.

`TopLevelGroup` provides a similar interface, but instead of a single `on_top_level_describe` hook there are two, `on_top_level_example_group` and `on_top_level_group`.
There's no need yet for `on_top_level_shared_group` for RuboCop core cops, but if your custom cop needs such a hook, please feel free to send a pull request.
Theres no need yet for `on_top_level_shared_group` for RuboCop core cops, but if your custom cop needs such a hook, please feel free to send a pull request.

Additionally, `single_top_level_describe?` is removed with no direct replacement.
You may use `top_level_groups` query method instead, e.g. `top_level_groups.one?`.
Expand Down

0 comments on commit a07ba4c

Please sign in to comment.