Sha256: b8d50718a194c29facdd28f74235bd2208be7af29306a073b4614aa0bcf84d32

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 Bytes

Contents

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

require 'spec_helper'

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

      email.email_address.should eq('wm2q7rwtp77m@roving.com')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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