Sha256: 878f3d836a4f904a093649a4f01e437d2e0788edc0d805eabafba54758a5dfd2

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 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 => lambda { |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

4 entries across 4 versions & 2 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/algebra/summarization/header_spec.rb
veritas-0.0.7 spec/unit/veritas/algebra/summarization/header_spec.rb
veritas-0.0.6 spec/unit/veritas/algebra/summarization/header_spec.rb
veritas-0.0.5 spec/unit/veritas/algebra/summarization/header_spec.rb