Use subject method in spec

Co-authored-by: Gaetan Craig-Riou <40413322+rioug@users.noreply.github.com>
This commit is contained in:
johansenja
2024-08-12 10:13:52 +01:00
committed by Konrad
parent 96f9894f41
commit 1621f97fdb

View File

@@ -18,7 +18,7 @@ RSpec.describe OpenFoodNetwork::EnterpriseInjectionData do
let!(:closed_oc) { create :closed_order_cycle, coordinator: enterprise4 }
context "when scoped to specific enterprises" do
let(:subject) {
subject {
described_class.new([enterprise1.id, enterprise2.id])
}