Sha256: e05cd9b6064409dadfef702b25bbfdbd65b300a0aa359a667ecb75d9ab19f052

Contents?: true

Size: 419 Bytes

Versions: 2

Compression:

Stored size: 419 Bytes

Contents

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

require 'spec_helper'

describe ConstantContact::Components::Address do
  describe "#from_list" do
    it "should return an address" do
      json = load_json('address.json')
      address = ConstantContact::Components::Address.create(JSON.parse(json))

      address.line1.should eq('6 Main Street')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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