The shared @cop instance variable of AssertOffense module causes flaky tests due to state changes.
The AssertOffense testing module needs to be updated to allow for tests that are independent in configuration between tests. It is necessary to prevent race conditions caused by shared configurations.
This is a workaround to skip tests until the issue is resolved in the AssertOffense module.
Before submitting the PR make sure the following are checked:
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[ ] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.
The shared
@cop
instance variable ofAssertOffense
module causes flaky tests due to state changes.The
AssertOffense
testing module needs to be updated to allow for tests that are independent in configuration between tests. It is necessary to prevent race conditions caused by shared configurations.This is a workaround to skip tests until the issue is resolved in the
AssertOffense
module.Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).bundle exec rake default
. It executes all tests and runs RuboCop on its own code.{change_type}_{change_description}.md
if the new code introduces user-observable changes. See changelog entry format for details.