Sha256: fad35e4f984f71dbbbbfe986242c463aa1a04461f7b40948fb9249dcd6f9284a
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Algebra::Join, '.new' do subject { object.new(left, right) } let(:header) { [ [ :id, Integer ] ] } let(:left) { Relation.new(header, [ [ 1 ], [ 2 ] ]) } let(:object) { described_class } context 'with relations having headers with common attributes' do let(:right) { Relation.new([ [ :id, Integer ], [ :name, String ] ], [ [ 2, 'Dan Kubb' ] ]) } it { should be_instance_of(object) } end context 'with relations having equivalent headers' do let(:right) { left.dup } it { should be_instance_of(object) } end context 'with relations having different headers' do let(:right) { Relation.new([ [ :name, String ] ], [ [ 'Dan Kubb' ] ]) } it { should be_instance_of(object) } end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/algebra/join/class_methods/new_spec.rb |
veritas-0.0.7 | spec/unit/veritas/algebra/join/class_methods/new_spec.rb |