diff --git a/spec/controllers/spree/admin/promotions_controller_spec.rb b/spec/controllers/spree/admin/promotions_controller_spec.rb index 7a4f04af38..8b347d2b4f 100644 --- a/spec/controllers/spree/admin/promotions_controller_spec.rb +++ b/spec/controllers/spree/admin/promotions_controller_spec.rb @@ -44,7 +44,8 @@ end context 'when there is a promotion belonging to a batch' do - let!(:promotion2) { create(:promotion, :batched, name: 'name2', code: 'code2', path: 'path2', stores: [store]) } + let!(:promotion_batch) { create(:promotion_batch) } + let!(:promotion2) { create(:promotion, promotion_batch_id: promotion_batch.id) } it 'does not include it in the result set' do get :index