Sha256: d5a1221617c22f8c9ea93641acade5ea4ac11a4f62fad3a0de35d56fadfe0dc6

Contents?: true

Size: 665 Bytes

Versions: 1

Compression:

Stored size: 665 Bytes

Contents

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

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

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

  it_should_behave_like 'an idempotent method'

  it { should be_kind_of(Relation::Header) }

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/relation/operation/combination/header_spec.rb