Sha256: 13a9ab7812c9360110d88b0d459af63c686531f894e2432d9fe52157a6b8cb38

Contents?: true

Size: 485 Bytes

Versions: 11

Compression:

Stored size: 485 Bytes

Contents

require 'helper'

class TestModuleFields < Test::Unit::TestCase
  context "A SugarCRM.connection" do
    setup do
      SugarCRM::Connection.new(URL, USER, PASS, {:debug => false, :register_modules => false})
    end
    should "return a hash of module fields when #get_module_fields" do
      fields = SugarCRM.connection.get_module_fields("Users")
      assert_instance_of ActiveSupport::HashWithIndifferentAccess, fields
      assert "address_city", fields.keys[0]
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sugarcrm-0.9.10 test/connection/test_get_module_fields.rb
sugarcrm-0.9.9 test/connection/test_get_module_fields.rb
sugarcrm-0.9.8 test/connection/test_get_module_fields.rb
sugarcrm-0.9.7 test/connection/test_get_module_fields.rb
sugarcrm-0.9.6 test/connection/test_get_module_fields.rb
sugarcrm-0.9.5 test/connection/test_get_module_fields.rb
sugarcrm-0.9.4 test/connection/test_get_module_fields.rb
sugarcrm-0.9.3 test/connection/test_get_module_fields.rb
sugarcrm-0.9.2 test/connection/test_get_module_fields.rb
sugarcrm-0.9.1 test/connection/test_get_module_fields.rb
sugarcrm-0.9.0 test/connection/test_get_module_fields.rb