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

[Spree 2.1] Fix creation of enterprises/users in specs #4821

Merged
merged 3 commits into from
Feb 28, 2020

Conversation

luisramos0
Copy link
Contributor

@luisramos0 luisramos0 commented Feb 22, 2020

What? Why?

Closes #4646

We have to move the definition of the association to after creation in the factory.

What should we test?

The error "Enterprise roles is invalid" is gone from the build.

Release notes

No release notes for upgrade isssues.

@luisramos0 luisramos0 changed the base branch from master to 3-0-stable February 22, 2020 11:32
@luisramos0 luisramos0 self-assigned this Feb 22, 2020
@luisramos0 luisramos0 changed the title 3 val issues [Spree 2.1] Fix creation of enterprises/users in specs Feb 22, 2020
…eation fixes a problem with enterprise_roles in the enterprise validation
@luisramos0
Copy link
Contributor Author

I had to change the last commit re images to use update_attributes
enterprise.logo = proxy.logo was not persisting the connection between the image and the enterprise.
This fixes 10 specs in spec/controllers/api/logos_controller_spec.rb and spec/controllers/api/promo_images_controller_spec.rb

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.

👍

@sauloperez sauloperez merged commit 9440363 into openfoodfoundation:3-0-stable Feb 28, 2020
@luisramos0 luisramos0 deleted the 3_val_issues branch February 28, 2020 10:41
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.

3 participants