Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
sugarcrm / test / test_response.rb
Size: Mime:
require 'helper'

class TestResponse < ActiveSupport::TestCase
  context "A SugarCRM::Response instance" do
    setup do
      @json =  {"entry_list"=> [{
                "name_value_list"=> {
                  "address_city" => {"name"=>"address_city", "value"=>""},
                  "receive_notifications" => {"name"=>"receive_notifications", "value"=>"1"},
                  "is_group" => {"name"=>"is_group", "value"=>"0"},
                  "pwd_last_changed" => {"name"=>"pwd_last_changed", "value"=>"never"}
                },
                "id"=>"1",
                "module_name"=>"Users"
              }],
             "relationship_list"=>[]}
  
      @response = SugarCRM::Response.handle(@json, SugarCRM.session)
    end
      
    should "return an instance of a SugarCRM Module" do
      assert_instance_of SugarCRM::User, @response
    end
      
  end
end