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

Namespace all testing_support/ files under Spree::TestingSupport namespace #2629

Merged
merged 5 commits into from
Mar 26, 2018

Conversation

jhawthorn
Copy link
Contributor

@jhawthorn jhawthorn commented Mar 14, 2018

Previously our test files defined a bunch of top level classes. This shouldn't really matter because it's just for tests, but it clutters up our documentation ☹️.

This PR makes some changes to avoid cluttering up the root namespace (at least as it appears to docs):

  • namespace OrderWalkthrough and CapybaraExt under the Spree::TestingSupport (with deprecations in place for the root constants)
  • hides the dummy_app related classes from yard (ApplicationController, etc.)
  • Deprecates BarAbility, and hides it from yard

After:

This is a fairly useless testing_support helper class (a fake ability).
It's unlikely to be used by any stores. If it is it can easily be copied
in.

Doing this and adding @Private to get it out of our documentation.
I don't think we need to deprecate this because it is only used for
tests and also is an empty method.
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Tested locally. Works perfect! 👍

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.

None yet

3 participants