Skip to content

Commit 515d088

Browse files
committed
Remove unneeded tests
1 parent 9d092d1 commit 515d088

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

spec/controllers/donations_controller_spec.rb

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -147,34 +147,4 @@
147147
end
148148
end
149149
end
150-
151-
context 'calculating total value of multiple donations' do
152-
it 'works correctly for multiple line items per donation' do
153-
donations = [
154-
create(:donation, :with_items, item_quantity: 1),
155-
create(:donation, :with_items, item_quantity: 2)
156-
]
157-
value = subject.send(:total_value, donations) # private method, need to use `send`
158-
expect(value).to eq(300)
159-
end
160-
161-
it 'returns zero for an empty array of donations' do
162-
expect(subject.send(:total_value, [])).to be_zero # private method, need to use `send`
163-
end
164-
end
165-
166-
context 'calculating total money raised for all donations' do
167-
it 'correctly calculates the total' do
168-
donations = [
169-
create(:donation, money_raised: 2),
170-
create(:donation, money_raised: 3)
171-
]
172-
value = subject.send(:total_money_raised, donations) # private method, need to use `send`
173-
expect(value).to eq(5)
174-
end
175-
176-
it 'returns zero for an empty array of donations' do
177-
expect(subject.send(:total_money_raised, [])).to be_zero # private method, need to use `send`
178-
end
179-
end
180150
end

0 commit comments

Comments
 (0)