Sha256: f1880a429dfe3dd7749238b3b3d4f721bb3ecebdde3db4661227e1bd3b2f37e4
Contents?: true
Size: 761 Bytes
Versions: 16
Compression:
Stored size: 761 Bytes
Contents
require 'spec_helper' Run.all do use_pacer_graphml_data describe RouteOperations, :transactions => false do before { setup_data } 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.v(:updated => 'yes').count.should == 7 end end it 'should update all records' do graph.v.bulk_job(2) do |v| v[:updated] = 'yup' end graph.v(:updated => 'yup').count.should == 7 end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems