Sha256: 0da28c7795fb39653692c1faa652954ad7edbf3534b1ba9bec22cfa8b7bdc827

Contents?: true

Size: 494 Bytes

Versions: 1

Compression:

Stored size: 494 Bytes

Contents

require 'spec_helper'

describe "Contacts API Live test", live: true do
  before do
    Hubspot.configure hapikey: "demo"
  end

  it "finds and updates a contact" do
    contact = Hubspot::Contact.find_by_email "testingapis@hubspot.com"
    contact.update! firstname: "Clint", lastname: "Eastwood"
    contact = Hubspot::Contact.find_by_id contact.vid
    contact["firstname"].should == "Clint"
    contact["lastname"].should == "Eastwood"
  end

  pending "creates and destroys a contact"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hubspot-ruby-0.1.1 spec/live/contacts_integration_spec.rb