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

Version Path
pacer-2.0.24-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.22-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.20-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.19-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.18-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.17-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.16-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.15-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.14-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.13-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.12-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.10-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.10.pre-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.8-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.6-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.4.pre-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-2.0.0.pre-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.6.0-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.5.4-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.5.3-java spec/pacer/route/mixin/bulk_operations_spec.rb