Sha256: 8555350460382e3cbd7c7ab777e281dcdc1ab89fa2289b8d6c62f09f84e9d27b

Contents?: true

Size: 558 Bytes

Versions: 4

Compression:

Stored size: 558 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 receive(:make_api_call).with(:delete, 12)
      subject.delete(12)
    end
  end

  describe '#delete_all' do
    it 'calls #make_api_call' do
      expect(subject).to receive(:make_api_call).with(:delete)
      subject.delete_all
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
pipedrive_api_rb-1.0.2 spec/lib/pipedrive/operations/delete_spec.rb
pipedrive_api_rb-1.0.1 spec/lib/pipedrive/operations/delete_spec.rb
pipedrive_api_rb-1.0.0 spec/lib/pipedrive/operations/delete_spec.rb
pipedrive.rb-0.3.0 spec/lib/pipedrive/operations/delete_spec.rb