spec/lib/batch_spec.rb in assimilate-0.0.2 vs spec/lib/batch_spec.rb in assimilate-0.0.3
- old
+ new
@@ -34,10 +34,11 @@
:baseline_count => 0,
:final_count => 6,
:adds_count => 6,
:new_ids => ["1", "2", "3", "4", "5", "6"],
:deletes_count => 0,
+ :deleted_ids => [],
:updates_count => 0,
:unchanged_count => 0,
:updated_fields => {}
}
end
@@ -62,10 +63,11 @@
:baseline_count => 6,
:final_count => 6,
:adds_count => 0,
:new_ids => [],
:deletes_count => 0,
+ :deleted_ids => [],
:updates_count => 0,
:unchanged_count => 6,
:updated_fields => {}
}
@catalog.catalog.count.should == @records.count
@@ -87,9 +89,10 @@
:baseline_count => 6,
:final_count => 7,
:adds_count => 1,
:new_ids => ["7"],
:deletes_count => 2,
+ :deleted_ids => ['4', '6'],
:updates_count => 1,
:unchanged_count => 3,
:updated_fields => {'title' => 1}
}
@catalog.active_count.should == @records.count