Sha256: 2da36e7606e491e97f963fbaee8c2da4ce4622de55399bd94676ced5cfd6827d
Contents?: true
Size: 921 Bytes
Versions: 22
Compression:
Stored size: 921 Bytes
Contents
require 'spec_helper' Run.all do use_pacer_graphml_data describe RouteOperations, :transactions => false do before do graph.transaction do setup_data end end describe '#bulk_job', :transactions => false do context 'commit every 2nd record, updating all vertices' do context 'with wrapped elements' do it 'should update all records' do graph.v(Tackle::SimpleMixin).bulk_job(2) do |v| v[:updated] = 'yes' end graph.read_transaction do graph.v(:updated => 'yes').count.should == 7 end end end it 'should update all records' do graph.v.bulk_job(2) do |v| v[:updated] = 'yup' end graph.read_transaction do graph.v(:updated => 'yup').count.should == 7 end end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems