Sha256: 950e32e90825a4516a4778c09d38f42ac7d7d5e636b5429a7061c476211428a5

Contents?: true

Size: 414 Bytes

Versions: 14

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_file('contact.json')
      contact = ConstantContact::Components::Contact.create(JSON.parse(json))

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

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
constantcontact-4.0.0 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-3.0.0 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-2.2.1 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-ruby-2.2.1 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-ruby-2.2.0 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-2.2.0 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-2.1.0 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-2.0.1 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-2.0.0 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-1.3.2 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-1.2.0 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-1.1.2 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-1.1.1 spec/constantcontact/components/contacts/contact_spec.rb
constantcontact-1.1.0 spec/constantcontact/components/contacts/contact_spec.rb