Sha256: 0bb1f989240d791f8066be625ffc5093944b24d380dcfe609cae77a31a3c3281
Contents?: true
Size: 516 Bytes
Versions: 1
Compression:
Stored size: 516 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Operation::Limit, '#delete' do subject { object.delete(other) } let(:object) { described_class.new(operand, 1) } let(:other) { stub('other') } let(:operand) { Relation.new(header, [ [ 1 ] ]).sort_by(header) } let(:header) { Relation::Header.coerce([ [ :id, Integer ] ]) } specify { expect { subject }.to raise_error(ImmutableRelationError, 'deleting from a limit is impossible') } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/operation/limit/delete_spec.rb |