Sha256: fc31db0ba392dce8d2e63b24d6a8fe836175ef6f68b9b4046867bb2ac7fa3734

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

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

require 'spec_helper'

describe ConstantContact::Components::CustomField do
	describe "#from_list" do
		it "should return a custom field" do
			json = '{"name":"Property", "value":"Private"}'
			field = ConstantContact::Components::CustomField.create(JSON.parse(json))

			field.name.should eq('Property')
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
constantcontact-1.0.0 spec/constantcontact/components/contacts/custom_field_spec.rb