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