Sha256: 5c469cf269fdc6546449bcd14f5ede4b86938cbf81ba16e5bb5cbb7d2ddc80a3
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
require 'spec_helper' RSpec.describe ::Pipedrive::Operations::Delete do subject do Class.new(::Pipedrive::Base) do include ::Pipedrive::Operations::Delete end.new('token') end context '#delete' do it 'should call #make_api_call' do expect(subject).to receive(:make_api_call).with(:delete, 12) subject.delete(12) end end context '#delete_all' do it 'should call #make_api_call' do expect(subject).to receive(:make_api_call).with(:delete) subject.delete_all end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pipedrive.rb-0.2.0 | spec/lib/pipedrive/operations/delete_spec.rb |
pipedrive.rb-0.1.0 | spec/lib/pipedrive/operations/delete_spec.rb |