Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retire TopLevelDescribe #978

Merged
merged 1 commit into from Oct 22, 2020
Merged

Retire TopLevelDescribe #978

merged 1 commit into from Oct 22, 2020

Conversation

pirj
Copy link
Member

@pirj pirj commented Jul 23, 2020

Why?

TopLevelGroup is a modern replacement for TopLevelDescribe.

Examples how to migrate cops from TopLevelDescribe to TopLevelGroup:


Before submitting the PR make sure the following are checked:

  • Rebase when Improve cops by using TopLevelGroup #977 is merged
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Updated documentation.
  • Added an entry to the CHANGELOG.md if the new code introduces user-observable changes.
  • The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

@pirj pirj self-assigned this Jul 23, 2020
@pirj pirj added this to the 2.0 milestone Jul 23, 2020
@pirj pirj linked an issue Jul 23, 2020 that may be closed by this pull request
@pirj pirj requested review from Darhazer and bquorning July 23, 2020 08:50
@pirj
Copy link
Member Author

pirj commented Jul 23, 2020

Not much to review. Atop of #977 there's one commit that removes the TopLevelDescribe class and a require line for it.

@pirj pirj changed the base branch from master to release-2.0 October 22, 2020 17:32
@pirj pirj marked this pull request as ready for review October 22, 2020 17:33
@pirj
Copy link
Member Author

pirj commented Oct 22, 2020

I'll rebase this one.

Why?

 - it was slow #925 (comment)
 - it ignored non-describe top-level example groups #925 (comment)

`TopLevelGroup` is a modern replacement for `TopLevelDescribe`.

Examples how to migrate cops from TopLevelDescribe to TopLevelGroup:

 - #932
 - #977
@bquorning bquorning merged commit 15aa5d3 into release-2.0 Oct 22, 2020
@bquorning bquorning deleted the retire-top_level_describe branch October 22, 2020 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use TopLevelGroup instead of TopLevelDescribe
2 participants