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 spec helpers under core/lib/testing_support #5941

Merged
merged 11 commits into from Aug 27, 2020

Conversation

luisramos0
Copy link
Contributor

@luisramos0 luisramos0 commented Aug 22, 2020

What? Why?

Here we move some required helpers from spree_core: testing_support/i18n, preferences helper and some methods from capabara_ext into WebHelper.

This makes OFN independent of all helpers under core/lib/testing_support
The only remaining needed files there are the factories, will be addressed in a separate PR.

What should we test?

Only test code changed, a green build is enough.

Release notes

Changelog Category: Changed
Updated test code to be independent of spree test helpers so we can make OFN independent of Spree.

@luisramos0 luisramos0 self-assigned this Aug 22, 2020
@luisramos0 luisramos0 changed the title [Bye bye Spree] Make OFN build green without spree_core spec helpers and core/lib/testing_support [Bye bye Spree] Make OFN independent of spec helpers under core/lib/testing_support Aug 22, 2020
@luisramos0 luisramos0 marked this pull request as ready for review August 22, 2020 17:18
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.

It'd be worth taking a look at those things I pointed out. It might be complexity that makes tests slow and we don't need it.

spec/support/request/web_helper.rb Show resolved Hide resolved
spec/support/request/web_helper.rb Outdated Show resolved Hide resolved
@sauloperez
Copy link
Contributor

This is pretty simple and hardly matter of discussion so I'm moving forward and merging for the sake of the pipe.

@Matt-Yorkley Matt-Yorkley merged commit 28651bb into openfoodfoundation:master Aug 27, 2020
@luisramos0 luisramos0 deleted the no_spree_specs branch August 29, 2020 18:37
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