Sha256: 6859bb2c1543ed464a9b1a67d11f10013c1c56e3cf1d9dd4695daf28bb4a9d8b
Contents?: true
Size: 503 Bytes
Versions: 2
Compression:
Stored size: 503 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Operation::Offset, '#delete' do subject { object.delete(other) } let(:object) { described_class.new(operand, 1) } let(:other) { double('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 an offset is impossible') } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/relation/operation/offset/delete_spec.rb |
axiom-0.1.1 | spec/unit/axiom/relation/operation/offset/delete_spec.rb |