Join GitHub today
Different behaviour between `Spree::Api::LineItemsController#create` and `#update` #2916
Hey @jbourassa, you're right that it should use
You can convert this issue into a PR by creating a new branch on your repository, making the necessary changes, committing them, pushing them to GitHub and then (with the
Hey @radar, I fixed the issue. The only way I could test this is by listening to the method call explicitly and asserting the parameters, uck!
This test looks kinda useless to me, but I included it anyway since you mentioned tests for this in the first place. Let me know if you see anything better, I'd be happy to improve it.
@radar : would you mind adding the
One use case of this would be allowing to use API as a backend only and inject price in the line_items base on a custom logic.