Sha256: 0350d9b0d873eb74a20bcd23043cf30ac9ce892733294e393edcad773d50c1d7
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 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) { stub('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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/algebra/product/delete_spec.rb |