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

Version Path
pacer-1.4.2-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.4.1-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.4.0-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.3.5-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.3.4-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.3.3-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.3.2-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.3.1-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.2.0-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.1.1-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.1.0-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.0.3-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.0.2-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.0.1-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-1.0.0-java spec/pacer/route/mixin/bulk_operations_spec.rb
pacer-0.9.1.1-java spec/pacer/route/mixin/bulk_operations_spec.rb