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

Extract factories to separate files and fix rubocop issues #3936

Merged
merged 18 commits into from
Jun 14, 2019

Conversation

luisramos0
Copy link
Contributor

@luisramos0 luisramos0 commented Jun 14, 2019

What? Why?

Closes #3612
Moving factories to separate files and fix rubocop issues.

Factories clean up time finally! I have been dreaming about this since a year ago when I started working on the spree upgrade :-D
It's looking good, factories.rb is now under 200 lines and no rubocop issues in any of the factories files.

Note for reviewers: commits that start with "Extract..." are only copy paste exercises.

What should we test?

Green build. Production code is not affected in any way.

Release notes

Changelog Category: Changed
Factories (support code for automated tests) is now better organized.

@luisramos0 luisramos0 self-assigned this Jun 14, 2019
@luisramos0 luisramos0 changed the title Extract order_cycle factories to separate file Extract factories to separate files and fix rubocop issues Jun 14, 2019
@luisramos0 luisramos0 changed the title Extract factories to separate files and fix rubocop issues WIP Extract factories to separate files and fix rubocop issues Jun 14, 2019
@luisramos0 luisramos0 changed the title WIP Extract factories to separate files and fix rubocop issues Extract factories to separate files and fix rubocop issues Jun 14, 2019
@luisramos0 luisramos0 removed the pr-wip label Jun 14, 2019
sauloperez
sauloperez approved these changes Jun 14, 2019
@sauloperez
Copy link
Contributor

Copy link
Contributor

@Matt-Yorkley Matt-Yorkley left a comment

Choose a reason for hiding this comment

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

Awesome!

@luisramos0 luisramos0 merged commit b1d4461 into openfoodfoundation:master Jun 14, 2019
@luisramos0 luisramos0 deleted the factories_refactor branch June 14, 2019 21:28
@luisramos0
Copy link
Contributor Author

maybe it deserved a review by everyone...

ping @kristinalim @mkllnk let me know if there's anything else you think should be changed or improved here.

Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

Yay!

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.

Separate factories.rb in smaller specific files
4 participants