fix buggy spec:

- this before block was causing multiple nevigation to the index
  - one from the spec itself, one from here.
This commit is contained in:
Ahmed Ejaz
2025-03-05 05:32:28 +05:00
parent 293b30cfa6
commit eee5d5c8ad

View File

@@ -120,7 +120,6 @@ RSpec.describe Admin::BulkLineItemsController, type: :controller do
context "producer enterprise" do
before do
allow(controller).to receive_messages spree_current_user: supplier.owner
get :index, as: :json
end
context "with no distributor allows to edit orders" do