Sha256: 94f1e985f18810b9b3173f228f7e005d6728285a07faaaf4156dd3697c67b58c

Contents?: true

Size: 488 Bytes

Versions: 2

Compression:

Stored size: 488 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Summarization, '#header' do
  subject { object.header }

  let(:operand)     { Relation.new([[:id, Integer]], [[1], [2]])           }
  let(:summarizers) { { test: ->(acc, tuple) { 1 } }                       }
  let(:object)      { described_class.new(operand, TABLE_DEE, summarizers) }

  it_should_behave_like 'an idempotent method'

  it { should be_instance_of(Relation::Header) }

  it { should == [[:test, Object]] }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/algebra/summarization/header_spec.rb
axiom-0.1.1 spec/unit/axiom/algebra/summarization/header_spec.rb