-
-
Notifications
You must be signed in to change notification settings - Fork 725
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 Upgrade] Fixed inexistent order#shipping_method= in several specs #2680
[Spree Upgrade] Fixed inexistent order#shipping_method= in several specs #2680
Conversation
@luisramos0 May I ask why you create WIP pull requests? |
:-) |
@luisramos0 Have you seen my documentation of configuring Semaphore? https://github.com/openfoodfoundation/openfoodnetwork/wiki/Continuous-Integration#semaphore-ci IMHO that's a downside of Semaphore, upside of Travis that the config is in the code already. |
ah, nice, I'll give it a try now. thanks for that! |
835d5a4
to
247c933
Compare
3e3823c
to
bff672e
Compare
I have gone through all the specs mentioned in issue #2662. This is ready for review. |
…r.shipping_method issue in features/admin/orders_spec
- fixed order creation to use order.shipments instead of order.shipping_method - adapted test to new spree 2 controller logic (shipments page is gone since 67f568914988bcc0a1fc520d15ed6444a6d12824 and redirect logic changed on e9cde1b4d570dd4f7f979ac71a58d6f3f342ebb4)
bff672e
to
32895cb
Compare
…ing fees to traits
…r, this is now done through order shipments
… spec by setting shipping_method in order through shipments
… proxy_order_spec, lib/open_food_network/customers_report_spec and features/admin/shipping_methods_spec
…one through order shipments
32895cb
to
843cd44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Off topic: The Spree upgrade seems to make a lot of things more complicated, because we haven't found the right way yet to bridge the OFN domain with Spree's domain. We will have to do some refactoring once it's all green.
yes, we need to continuously refactor. do let me know if you are thinking of some specific refactoring, in some cases we may just do it now. |
2 approvals, moving to ready to go. |
I totally understand your point and I believe we're getting better at that but, I think the tight coupling to Spree's DB schema won't be easy to overcome. |
Closes #2662
Instead of writing an adapter (as in #2669 ), the best solution here is to fix all specs that need this method. Production code may actually not require to set shipping_method like this.
Test
Acc Criteira: no "undefined method order.shipping_method=" errors in specs