Sha256: 28543458192bdaecfc999d2cbb7ff405a9618a536d92ec80f56333b07454203a

Contents?: true

Size: 320 Bytes

Versions: 8

Compression:

Stored size: 320 Bytes

Contents

require 'spec_helper'

describe Pacer::Filter::ObjectFilter do
  it '#is' do
    [1, 2, 3, 2, 3].to_route.is(2).to_a.should == [2, 2]
  end

  it '#is_not' do
    [1, 2, 3, 2, 3].to_route.is_not(2).to_a.should == [1, 3, 3]
  end

  it '#compact' do
    [1, nil, 2, 3].to_route.compact.to_a.should == [1, 2, 3]
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pacer-1.3.1-java spec/pacer/filter/object_filter_spec.rb
pacer-1.2.0-java spec/pacer/filter/object_filter_spec.rb
pacer-1.1.1-java spec/pacer/filter/object_filter_spec.rb
pacer-1.1.0-java spec/pacer/filter/object_filter_spec.rb
pacer-1.0.3-java spec/pacer/filter/object_filter_spec.rb
pacer-1.0.2-java spec/pacer/filter/object_filter_spec.rb
pacer-1.0.1-java spec/pacer/filter/object_filter_spec.rb
pacer-1.0.0-java spec/pacer/filter/object_filter_spec.rb