mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Convert calls to xhr to post or put with xhr: true
This commit is contained in:
@@ -237,7 +237,7 @@ describe Admin::BulkLineItemsController, type: :controller do
|
||||
context "hub enterprise" do
|
||||
before do
|
||||
allow(controller).to receive_messages spree_current_user: distributor1.owner
|
||||
xhr :put, :update, params
|
||||
put :update, params: params, xhr: true
|
||||
end
|
||||
|
||||
it "updates the line item" do
|
||||
|
||||
Reference in New Issue
Block a user