From a07ba4c3df73a6b21e356accb049a24815a08a87 Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Thu, 22 Oct 2020 23:17:06 +0300 Subject: [PATCH] Update docs/modules/ROOT/pages/upgrade_to_version_2.adoc Co-authored-by: Benjamin Quorning <22333+bquorning@users.noreply.github.com> --- docs/modules/ROOT/pages/upgrade_to_version_2.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/upgrade_to_version_2.adoc b/docs/modules/ROOT/pages/upgrade_to_version_2.adoc index e639eb48e..75ccd5efb 100644 --- a/docs/modules/ROOT/pages/upgrade_to_version_2.adoc +++ b/docs/modules/ROOT/pages/upgrade_to_version_2.adoc @@ -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. +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. 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?`.