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

[Bye bye Spree] Make OFN independent of all spree spec factories #5943

Merged
merged 36 commits into from Aug 27, 2020

Conversation

luisramos0
Copy link
Contributor

@luisramos0 luisramos0 commented Aug 23, 2020

What? Why?

Relates to #4826
Move all necessary factories from spree_core to ofn.

What should we test?

A green build is enough here, only test code changed.

Release notes

Changelog Category: Changed
Brought test support code from spree so that we can make OFN independent of Spree.

the 3 factories

I cannot figure out out to make this work again...
@luisramos0 luisramos0 self-assigned this Aug 23, 2020
@luisramos0 luisramos0 force-pushed the spree_factories branch 2 times, most recently from 56cb8f3 to 211f684 Compare August 23, 2020 15:53
We dont need the global zone
@luisramos0 luisramos0 marked this pull request as ready for review August 23, 2020 17:08
@@ -1,22 +1,10 @@
require 'ffaker'
require 'spree/testing_support/factories'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the magic of this PR: no spree factories used.

Copy link
Contributor

@sauloperez sauloperez left a comment

Choose a reason for hiding this comment

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

👏

spec/factories/variant_factory.rb Outdated Show resolved Hide resolved
spec/models/spree/stock_item_spec.rb Outdated Show resolved Hide resolved
@luisramos0
Copy link
Contributor Author

luisramos0 commented Aug 26, 2020

👍 I ended up running rubocop -a on spec/factories (last commit). Let's see if the build is ok.

EDIT: Build is ok :-)

@sauloperez sauloperez merged commit 6f33ae5 into openfoodfoundation:master Aug 27, 2020
@luisramos0 luisramos0 deleted the spree_factories branch August 29, 2020 18:36
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