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

Version Path
pipedrive_api_rb-1.0.2 spec/lib/pipedrive/operations/create_spec.rb
pipedrive_api_rb-1.0.1 spec/lib/pipedrive/operations/create_spec.rb
pipedrive_api_rb-1.0.0 spec/lib/pipedrive/operations/create_spec.rb
pipedrive.rb-0.3.0 spec/lib/pipedrive/operations/create_spec.rb