Sha256: 8d58139867f38321512924686ff6323847c7349d047c8a6af9565d5b7b5e187c

Contents?: true

Size: 850 Bytes

Versions: 6

Compression:

Stored size: 850 Bytes

Contents

require 'spec_helper'
module Alf
  module Operator::NonRelational
    describe Compact::BufferBased do
        
      let(:input) {[
        {:a => "via_method", :time => 1, :b => "b"},
        {:a => "via_method", :time => 1, :b => "b"},
        {:a => "via_method", :time => 2, :b => "b"},
        {:a => "via_reader", :time => 3, :b => "b"},
        {:a => "via_reader", :time => 3, :b => "b"},
      ]}
  
      let(:expected) {[
        {:a => "via_method", :time => 1, :b => "b"},
        {:a => "via_method", :time => 2, :b => "b"},
        {:a => "via_reader", :time => 3, :b => "b"},
      ]}
  
      subject{ operator.to_a }
  
      describe "when factored with commandline args" do
        let(:operator){ Compact::BufferBased.new }
        before{ operator.pipe(input) }
        it { should == expected }
      end
  
    end 
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alf-0.10.1 spec/unit/operator/non_relational/compact/test_buffer_based.rb
alf-0.10.0 spec/unit/operator/non_relational/compact/test_buffer_based.rb
alf-0.9.3 spec/unit/operator/non_relational/compact/buffer_based.rb
alf-0.9.2 spec/unit/operator/non_relational/compact/buffer_based.rb
alf-0.9.1 spec/unit/operator/non_relational/compact/buffer_based.rb
alf-0.9.0 spec/operator/non_relational/compact/buffer_based.rb