Skip to content

Conversation

@pirj
Copy link
Member

@pirj pirj commented Jul 23, 2022

Previously I mistakenly assumed there's a problem with RSpec 4, as it includes the context that defines metadata first, and when we were removing :config from our with default RSpec/Language, we had to include config one first from spec_helper.rb.

In reality, if one shared context depends on another, it needs to explicitly include it.

Originated in #1322, follow-up to #1332. Also see rubocop/rubocop@1e77a15#diff-a328b4f030d5897fe22c01bb96a3bfbcc8bcc6a11f936d1e7a2db73a721d0eb8L52


Before submitting the PR make sure the following are checked:

  • 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).

Previously I mistakenly assumed there's a problem with RSpec 4, as it
includes the context that defines metadata first, and when we were
removing `:config` from our `with default RSpec/Language`, we had to
include `config` one first from `spec_helper.rb`.

In reality, if one shared context depends on another, it needs to
explicitly include it.
@pirj pirj self-assigned this Jul 23, 2022
@pirj pirj merged commit 252dd04 into master Jul 23, 2022
@pirj pirj deleted the untangle-dependent-shared-contexts branch July 23, 2022 18: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.

2 participants