Sha256: e22c361319812537de0bf857b52bc4adf2512a39e5ba4e41bf8536f26b1cafb5

Contents?: true

Size: 505 Bytes

Versions: 2

Compression:

Stored size: 505 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Product, '#insert' do
  subject { object.insert(other) }

  let(:object) { described_class.new(left, right)                }
  let(:other)  { double('other')                                 }
  let(:left)   { Relation.new([[:id, Integer]], [[1]])           }
  let(:right)  { Relation.new([[:name, String]], [['John Doe']]) }

  specify { expect { subject }.to raise_error(ImmutableRelationError, 'inserting into a product is impossible') }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/algebra/product/insert_spec.rb
axiom-0.1.1 spec/unit/axiom/algebra/product/insert_spec.rb