Sha256: eea29cd24fbe64f5936cc611bea1710eba5a20c5b8e246903627bd30bcb48180
Contents?: true
Size: 475 Bytes
Versions: 38
Compression:
Stored size: 475 Bytes
Contents
require 'spec_helper' describe Pacer::Filter::CollectionFilter do context 'on an array of objects' do let(:route) { [1,2,3].to_route } it 'should filter out an element' do route.except(2).to_a.should == [1,3] end it 'should filter out an array of elements' do route.except([2,3]).to_a.should == [1] end it 'should filter out the elements from another route' do route.except([2,3].to_route).to_a.should == [1] end end end
Version data entries
38 entries across 38 versions & 1 rubygems