Sha256: d1e718754aa6e4800171935aa339ba117006df80c54a51bebb8a6162644975d2
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
require 'spec_helper' RSpec.describe ::Pipedrive::Operations::Update do subject do Class.new(::Pipedrive::Base) do include ::Pipedrive::Operations::Update end.new('token') end context '#create' do it 'should call #make_api_call' do expect(subject).to receive(:make_api_call).with(:put, 12, {foo: 'bar'}) subject.update(12, foo: 'bar') end it 'should call #make_api_call with id in params' do expect(subject).to receive(:make_api_call).with(:put, 14, {foo: 'bar'}) subject.update(foo: 'bar', id: 14) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pipedrive.rb-0.2.0 | spec/lib/pipedrive/operations/update_spec.rb |
pipedrive.rb-0.1.0 | spec/lib/pipedrive/operations/update_spec.rb |