Sha256: 687c526301d08563393d71813b692494cee3cb3e6ba8363e3a151ea4bc00d8a9
Contents?: true
Size: 917 Bytes
Versions: 18
Compression:
Stored size: 917 Bytes
Contents
require 'helper' class TestResponse < Test::Unit::TestCase context "A SugarCRM::Response instance" do setup do @connection = SugarCRM::Connection.new(URL, USER, PASS) @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) end should "return an instance of a SugarCRM Module" do assert_instance_of SugarCRM::User, @response end end end
Version data entries
18 entries across 18 versions & 1 rubygems