# frozen_string_literal: true require 'spec_helper' RSpec.describe Pipedrive::Operations::Delete do subject do Class.new(Pipedrive::Base) do include Pipedrive::Operations::Delete end.new('token') end describe '#delete' do it 'calls #make_api_call' do expect(subject).to have_received(:make_api_call).with(:delete, 12) subject.delete(12) end end describe '#delete_all' do it 'calls #make_api_call' do expect(subject).to have_received(:make_api_call).with(:delete) subject.delete_all end end end