spec/api/push_objects_spec.rb in rhosync-2.1.3 vs spec/api/push_objects_spec.rb in rhosync-2.1.6
- old
+ new
@@ -12,9 +12,10 @@
end
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)
update.each do |key,value|
data['2'][key] = value
end
post "/api/push_objects", :api_token => @api_token,
\ No newline at end of file