Convert calls to xhr to post or put with xhr: true

This commit is contained in:
Luis Ramos
2021-03-13 12:08:10 +00:00
parent 58c3c49cfb
commit f710bbed3e
4 changed files with 11 additions and 11 deletions

View File

@@ -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