Sha256: 0358ed64dc2b43d7d7642f4699f3344abffcb8bdc4b7a4430e232cb0c5be6159

Contents?: true

Size: 467 Bytes

Versions: 2

Compression:

Stored size: 467 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

  it_should_behave_like 'an idempotent method'

  it { should be_instance_of(Relation::Header) }

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

Version data entries

2 entries across 2 versions & 1 rubygems

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