Sha256: 3f79ad514dac11ee18ddf42daacb09be14281aef38cbc35850e0c1af3bbc3598

Contents?: true

Size: 564 Bytes

Versions: 2

Compression:

Stored size: 564 Bytes

Contents

# 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pipedrive_api_rb-1.0.5 spec/lib/pipedrive/operations/delete_spec.rb
pipedrive_api_rb-1.0.4 spec/lib/pipedrive/operations/delete_spec.rb