test/test_response.rb in sugarcrm-0.9.10 vs test/test_response.rb in sugarcrm-0.9.11

- old
+ new

@@ -1,11 +1,10 @@ require 'helper' -class TestResponse < Test::Unit::TestCase +class TestResponse < ActiveSupport::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"}, @@ -14,10 +13,10 @@ "id"=>"1", "module_name"=>"Users" }], "relationship_list"=>[]} - @response = SugarCRM::Response.handle(@json) + @response = SugarCRM::Response.handle(@json, SugarCRM.session) end should "return an instance of a SugarCRM Module" do assert_instance_of SugarCRM::User, @response end \ No newline at end of file