Sha256: 357da795dfd97fc0610add5fd6f2474ca5eb6ac56dc90baa8e4f29a67361c7cb
Contents?: true
Size: 412 Bytes
Versions: 4
Compression:
Stored size: 412 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe ::Pipedrive::Operations::Create do subject do Class.new(::Pipedrive::Base) do include ::Pipedrive::Operations::Create end.new('token') end describe '#create' do it 'calls #make_api_call' do expect(subject).to receive(:make_api_call).with(:post, { foo: 'bar' }) subject.create(foo: 'bar') end end end
Version data entries
4 entries across 4 versions & 2 rubygems