spec/api/push_objects_spec.rb in rhosync-2.1.6 vs spec/api/push_objects_spec.rb in rhosync-2.1.7

- old
+ new

@@ -13,10 +13,10 @@ it "should push updates to existing objects to rhosync's :md" do data = {'1' => @product1, '2' => @product2, '3' => @product3} update = {'price' => '0.99', 'new_field' => 'value'} @s = Source.load(@s_fields[:name],@s_params) - set_state(@s.docname(:md) => data) + set_state(@s.docname(:md) => data,@s.docname(:md_size) => '3') update.each do |key,value| data['2'][key] = value end post "/api/push_objects", :api_token => @api_token, :user_id => @u.id, :source_id => @s_fields[:name], :objects => {'2'=>update} \ No newline at end of file