diff --git a/spec/controllers/donations_controller_spec.rb b/spec/controllers/donations_controller_spec.rb index 64a1c7c92f..0bb4d4150f 100644 --- a/spec/controllers/donations_controller_spec.rb +++ b/spec/controllers/donations_controller_spec.rb @@ -119,7 +119,7 @@ } donation_params = { source: donation.source, storage_location: new_storage_location, line_items_attributes: line_item_params } put :update, params: { id: donation.id, donation: donation_params } - expect(response).not_to redirect_to(anything) + expect(response).to redirect_to(edit_donations_path) expect(original_storage_location.size).to eq 5 expect(new_storage_location.size).to eq 0 expect(donation.reload.line_items.first.quantity).to eq 10