Sha256: 48f5bc2fcf1db79cddcbb954397db3b3e6453d43d9e0b2a2a507e1136ae9300a

Contents?: true

Size: 451 Bytes

Versions: 2

Compression:

Stored size: 451 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Algebra::Product' do
  context 'Commutative property' do
    subject { left.product(right) }

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/integration/veritas/algebra/product_spec.rb
veritas-0.0.1 spec/integration/veritas/algebra/product_spec.rb