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

Remove all usage of FooAbility and BarAbility when testing abilities #3850

Merged
merged 4 commits into from
Nov 27, 2020

Conversation

kennyadsl
Copy link
Member

Description

This is preparatory work for #3816. We need to remove BarAbility that is deprecated, but it's actually still used in the codebase.

This PR removes its usage and takes advantage of the change to also remove FooAbility class, which is very similar but wasn't under the radar in a previous refactor because it's not defining a top-level class in our documentation.

Needs backport on v2.11.

Checklist:

BarAbility is deprecated and will be removed in Solidus 3.0.
Makes less sense to keep this FooAbility that is also almost
unused.
All abilities are reset in a

    after(:each) {
      Spree::Ability.abilities = Set.new
    }

at the beginning of the file.
It's deprecated but the deprecation message was silenced for some
reason. This commit allow us to avoid using that class switching
to an anonymous class that does the same.
It is deprecated and now unused
@kennyadsl kennyadsl added changelog:solidus_core Changes to the solidus_core gem Needs Backport labels Nov 25, 2020
@kennyadsl kennyadsl self-assigned this Nov 25, 2020
Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kennyadsl thank you 👍

@kennyadsl kennyadsl merged commit 46d5001 into solidusio:master Nov 27, 2020
@kennyadsl kennyadsl deleted the kennyadsl/deprecate-foo-ability branch November 27, 2020 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_core Changes to the solidus_core gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants