Sha256: 6aa5e7ffdc844748581e5c116eac928f7f064118a9ae77f2b278939344cb75cf
Contents?: true
Size: 412 Bytes
Versions: 2
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 have_received(: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_api_rb-1.0.5 | spec/lib/pipedrive/operations/create_spec.rb |
pipedrive_api_rb-1.0.4 | spec/lib/pipedrive/operations/create_spec.rb |