Skip to content

Commit

Permalink
Remove outdated code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomdonarski committed Dec 12, 2023
1 parent e964d88 commit 38da8f6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions spec/controllers/spree/admin/promotions_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,6 @@
end
end

describe '#duplicate' do
subject do
post :duplicate, params: { id: promotion1.id, batch_size: batch_size }
end

let(:batch_size) { 2 }

it "calls the duplication service" do
expect(Promotions::CreatePromotionBatch)
.to receive(:call)
.with(promotion1, batch_size)

subject
end
end

describe '#destroy' do
subject(:send_request) do
delete :destroy, params: { id: promotion, format: :js }
Expand Down

0 comments on commit 38da8f6

Please sign in to comment.