Sha256: eeb75571b5053330e639f7f4872a37c88aab404b479a7763470794e717f3c993

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

require 'spec_helper'

[ :union, :| ].each do |method|
  describe "Veritas::Relation::Header##{method}" do
    subject { header.send(method, other) }

    let(:attribute1) { [ :id,   Integer ]                   }
    let(:attribute2) { [ :name, String  ]                   }
    let(:header)     { Relation::Header.new([ attribute1 ]) }
    let(:other)      { Relation::Header.new([ attribute2 ]) }

    it { should be_kind_of(Relation::Header) }

    it { should == [ attribute1, attribute2 ] }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.1 spec/unit/veritas/relation/header/union_spec.rb