Sha256: e706f1af8d37ea699c3e1057e929a55bceb953cd46ae2056584ed865b15c118d
Contents?: true
Size: 600 Bytes
Versions: 4
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe ::Pipedrive::Operations::Update do subject do Class.new(::Pipedrive::Base) do include ::Pipedrive::Operations::Update end.new('token') end describe '#create' do it 'calls #make_api_call' do expect(subject).to receive(:make_api_call).with(:put, 12, { foo: 'bar' }) subject.update(12, foo: 'bar') end it 'calls #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
4 entries across 4 versions & 2 rubygems