Sha256: d77a55b70c292a38b5e9e37b522f37c03388845bb688f2d7d2eca4c646f119c0

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

#
# contact_spec.rb
# ConstantContact
#
# Copyright (c) 2013 Constant Contact. All rights reserved.

require 'spec_helper'

describe ConstantContact::Components::Contact do
  describe "#from_list" do
    it "should return a contact" do
      json = load_json('contact.json')
      contact = ConstantContact::Components::Contact.create(JSON.parse(json))

      contact.last_name.should eq('Smith')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
constantcontact-1.0.2 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-1.0.1 spec/constantcontact/components/contacts/contact_spec.rb