mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-14 23:47:48 +00:00
Fix inventory items controller
This commit is contained in:
@@ -44,7 +44,7 @@ RSpec.describe Admin::InventoryItemsController, type: :controller do
|
||||
|
||||
context "and the producer has granted VO permission" do
|
||||
before do
|
||||
create(:enterprise_relationship, parent: variant.product.supplier, child: enterprise,
|
||||
create(:enterprise_relationship, parent: variant.supplier, child: enterprise,
|
||||
permissions_list: [:create_variant_overrides])
|
||||
end
|
||||
|
||||
@@ -114,7 +114,7 @@ RSpec.describe Admin::InventoryItemsController, type: :controller do
|
||||
|
||||
context "and the producer has granted VO permission" do
|
||||
before do
|
||||
create(:enterprise_relationship, parent: variant.product.supplier, child: enterprise,
|
||||
create(:enterprise_relationship, parent: variant.supplier, child: enterprise,
|
||||
permissions_list: [:create_variant_overrides])
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user