Sha256: 690fb9570742dcf5919725ec9830af532e5e93b8f5fc0b6fae1e52b174a234e1

Contents?: true

Size: 1.01 KB

Versions: 22

Compression:

Stored size: 1.01 KB

Contents

require 'spec_helper'

Run.tg(:read_only) do
  use_pacer_graphml_data :read_only

  describe Pacer::Filter::EmptyFilter do
    let(:origin) { graph.v(Tackle::SimpleMixin) }
    subject { Pacer::Route.empty(origin) }

    its(:graph) { should == graph }
    its(:element_type) { should == graph.element_type(:vertex) }
    its(:extensions) { should == [Tackle::SimpleMixin] }
    its(:build_pipeline) { should be_nil }

    context 'with route built on it' do
      subject { Pacer::Route.empty(origin).filter(name: 'joe') }
      its(:graph) { should == graph }
      its(:element_type) { should == graph.element_type(:vertex) }
      its(:extensions) { should == [Tackle::SimpleMixin] }
      its(:inspect) { should == '#<V -> V-Property(name=="joe")>' }
      it 'should create a pipeline with only the pipe added to it' do
        start_pipe, end_pipe = subject.send :build_pipeline
        start_pipe.should == end_pipe
        start_pipe.should be_a Java::ComTinkerpopPipesFilter::PropertyFilterPipe
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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