Sha256: c36a10b70a373ac981671ed7fdf63d4feca01276266a2cf25cf265dc9d5cf627

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Product, '#delete' do
  subject { object.delete(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, 'deleting from 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/delete_spec.rb
axiom-0.1.1 spec/unit/axiom/algebra/product/delete_spec.rb