Sha256: 4661d02cc4b3d0c424aabf1e20862a187386abbb955f0ef572e370992acbd9de

Contents?: true

Size: 679 Bytes

Versions: 2

Compression:

Stored size: 679 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require File.expand_path('../fixtures/classes', __FILE__)

describe Relation::Operation::Combination, '#header' do
  subject { object.header }

  let(:described_class) { CombinationOperationSpecs::Object                }
  let(:left)            { Relation.new([[:id,   Integer]], [[1], [2]])     }
  let(:right)           { Relation.new([[:name, String]],  [['Dan Kubb']]) }
  let(:object)          { described_class.new(left, right)                 }

  it_should_behave_like 'an idempotent method'

  it { should be_instance_of(Relation::Header) }

  it 'unions the headers' do
    should == [[:id, Integer], [:name, String]]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/relation/operation/combination/header_spec.rb
axiom-0.1.1 spec/unit/axiom/relation/operation/combination/header_spec.rb