Sha256: ff0f280f9bba028c65e183c068c0a3e1615d4103c2e24a6f334ecc13ed428938

Contents?: true

Size: 492 Bytes

Versions: 5

Compression:

Stored size: 492 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Join do
  context 'Commutative property' do
    subject { left.join(right) }

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

    it 'does not matter which order the relations are joined in' do
      should == right.join(left)
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
axiom-0.1.0 spec/integration/axiom/algebra/join_spec.rb
veritas-0.0.7 spec/integration/veritas/algebra/join_spec.rb
veritas-0.0.6 spec/integration/veritas/algebra/join_spec.rb
veritas-0.0.5 spec/integration/veritas/algebra/join_spec.rb
veritas-0.0.4 spec/integration/veritas/algebra/join_spec.rb