mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-03 06:59:14 +00:00
Use subject method in spec
Co-authored-by: Gaetan Craig-Riou <40413322+rioug@users.noreply.github.com>
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user