Skip to content

Commit

Permalink
Fix test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdonarski committed Jan 7, 2024
1 parent acf9281 commit ac46e86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/controllers/spree/admin/promotions_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac46e86

Please sign in to comment.