spec/api/rhosync_api_spec.rb in rhosync-2.1.10 vs spec/api/rhosync_api_spec.rb in rhosync-2.1.11

- old
+ new

@@ -119,11 +119,11 @@ RhosyncApi::delete_client('some_url',@api_token,@u_fields[:login],@c.id).should == "Client deleted" end it "should list client attributes using direct api call" do res = RhosyncApi::get_client_params('',@api_token,@c.id) - res.delete_if { |attrib| attrib['name'] == 'rho__id' } + res.delete_if { |attrib| attrib['name'] == 'rho__id' || attrib['name'] == 'last_sync'} res.sort{|x,y| x['name']<=>y['name']}.should == [ {"name"=>"device_type", "value"=>"Apple", "type"=>"string"}, {"name"=>"device_pin", "value"=>"abcd", "type"=>"string"}, {"name"=>"device_port", "value"=>"3333", "type"=>"string"}, {"name"=>"user_id", "value"=>"testuser", "type"=>"string"}, @@ -162,10 +162,11 @@ {"name"=>"url", "value"=>"http://example.com", "type"=>"string"}, {"name"=>"login", "value"=>"testuser", "type"=>"string"}, {"name"=>"password", "value"=>"testpass", "type"=>"string"}, {"name"=>"priority", "value"=>3, "type"=>"integer"}, {"name"=>"callback_url", "value"=>nil, "type"=>"string"}, - {"name"=>"poll_interval", "value"=>300, "type"=>"integer"}, + {"name"=>"poll_interval", "value"=>300, "type"=>"integer"}, + {"name"=>"retry_limit", "type"=>"integer", "value"=>0}, {"name"=>"partition_type", "value"=>"user", "type"=>"string"}, {"name"=>"sync_type", "value"=>"incremental", "type"=>"string"}, {"name"=>"belongs_to", "type"=>"string", "value"=>nil}, {"name"=>"has_many", "type"=>"string", "value"=>"FixedSchemaAdapter,brand"}, {"name"=>"id", "value"=>"SampleAdapter", "type"=>"string"}, \ No newline at end of file