Skip to content

Commit

Permalink
Remove a test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdonarski committed Jan 10, 2024
1 parent f8a617c commit d4e771d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions spec/controllers/spree/admin/promotions_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@
get :index, params: { q: { path_cont: promotion1.path } }
expect(assigns[:promotions]).to eq [promotion1]
end

context 'when there is a promotion belonging to a batch' do
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
expect(assigns[:promotions]).to match_array [promotion1]
end
end
end
end

Expand Down

0 comments on commit d4e771d

Please sign in to comment.