You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had some specs in our project that used Object.send(:remove_const, :SomeConstant) instead of using e.g. stub_const. This lead to annoying and hard to debug issues in our CI pipelines. To get rid of these usages and rise awareness about this we created a cop that we would like to contribute, if you are interested.
Following the recent introduction of a new cop in Rubocop,
Rspec/RemoveConst, our CI has started failing. It seems like this rule
is being enforced as a good practice to avoid buggy debug information
but no real alternative is being offered.
This commit disables the cop to allow the CI to continue working. Here
are the discussions that led to the creation of the rule:
rubocop/rubocop-rspec#1748rubocop/rubocop-rspec#1749
We had some specs in our project that used
Object.send(:remove_const, :SomeConstant)
instead of using e.g.stub_const
. This lead to annoying and hard to debug issues in our CI pipelines. To get rid of these usages and rise awareness about this we created a cop that we would like to contribute, if you are interested.The text was updated successfully, but these errors were encountered: