Sha256: 7d38320a8996bbbe9b8ff6c4ebf0de64ca97e091afbdd5dabc7bc63a430d1797

Contents?: true

Size: 815 Bytes

Versions: 7

Compression:

Stored size: 815 Bytes

Contents

require 'helper'

#require 'connection/test_login'
#require 'connection/test_get_available_modules'
#require 'connection/test_get_module_fields'
#require 'connection/test_get_entry'
#require 'connection/test_get_entries'
#require 'connection/test_get_entry_list'

class TestConnection < Test::Unit::TestCase
  context "A SugarCRM::Connection instance" do
    setup do
      @connection = SugarCRM::Connection.new(URL, USER, PASS)
    end
    should "retrieve the list of available modules" do
      assert_instance_of Array, SugarCRM.modules
      assert_instance_of SugarCRM::Module, SugarCRM.modules[0]
    end
    should "create sub-classes by module name" do
      @connection = SugarCRM::Connection.new(URL, USER, PASS, {:register_modules => true})
      assert SugarCRM.const_defined? "User"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sugarcrm-0.8.2 test/test_connection.rb
sugarcrm-0.8.1 test/test_connection.rb
sugarcrm-0.8.0 test/test_connection.rb
sugarcrm-0.7.9 test/test_connection.rb
sugarcrm-0.7.8 test/test_connection.rb
sugarcrm-0.7.7 test/test_connection.rb
sugarcrm-0.7.2 test/test_connection.rb