Sha256: 7d587ef52d299efb93dfedf93343cb9407978adbe8c104d65867f32b8fe4b4d5

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

require 'spec_helper'

RSpec.describe ::Pipedrive::Operations::Create do
  subject do
    Class.new(::Pipedrive::Base) do
      include ::Pipedrive::Operations::Create
    end.new('token')
  end

  context '#create' do
    it 'should call #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

2 entries across 2 versions & 1 rubygems

Version Path
pipedrive.rb-0.2.0 spec/lib/pipedrive/operations/create_spec.rb
pipedrive.rb-0.1.0 spec/lib/pipedrive/operations/create_spec.rb