Sha256: 394d584aff1b5e2989188da7c0d16c1adedd0758178c3d2d0de9a5840e592212

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 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

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/integration/axiom/algebra/join_spec.rb
axiom-0.1.1 spec/integration/axiom/algebra/join_spec.rb