spec/source_sync_spec.rb in rhosync-2.1.7 vs spec/source_sync_spec.rb in rhosync-2.1.10
- old
+ new
@@ -143,14 +143,18 @@
end
it "should do update with errors" do
msg = "Error updating record"
data = add_error_object({'4'=> { 'price' => '199.99' }},msg)
- set_state(@c.docname(:update) => data)
+ set_state(@c.docname(:update) => data,
+ @c.docname(:cd) => { ERROR => { 'price' => '99.99' } }
+ )
@ss.update(@c.id)
- verify_result(@c.docname(:update_errors) =>
- {"#{ERROR}-error"=>{"message"=>msg}, ERROR=>data[ERROR]},
- @c.docname(:update) => {'4'=> { 'price' => '199.99'}})
+ verify_result(
+ @c.docname(:update_errors) =>
+ {"#{ERROR}-error"=>{"message"=>msg}, ERROR=>data[ERROR]},
+ @c.docname(:update) => {'4'=> { 'price' => '199.99'}},
+ @c.docname(:update_rollback) => {ERROR=>{"price"=>"99.99"}})
end
end
describe "delete" do
it "should do delete with no errors" do
\ No newline at end of file