Sha256: 750babaa4f67cd9c31a364cbc6e282a14eafaf791589331cde6cada2ff6ea174

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

require 'helper'

class TestGetRelationships < Test::Unit::TestCase
  context "A SugarCRM.connection" do
    setup do
      SugarCRM::Connection.new(URL, USER, PASS, {:register_modules => false, :debug => false})
    end
    should "return a list of email_addresses when sent #get_relationship and a user_id" do
      email_addresses = SugarCRM.connection.get_relationships(
        "Users",1,"email_addresses"
      )
      assert_instance_of SugarCRM::EmailAddress, email_addresses.first
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sugarcrm-0.9.10 test/connection/test_get_relationships.rb
sugarcrm-0.9.9 test/connection/test_get_relationships.rb
sugarcrm-0.9.8 test/connection/test_get_relationships.rb