Sha256: f82b3912e83f67fc19d35d9ee9c2f2a4af34211a234a5ef933dad7e987769475
Contents?: true
Size: 504 Bytes
Versions: 2
Compression:
Stored size: 504 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Operation::Offset, '#insert' do subject { object.insert(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, 'inserting into 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/insert_spec.rb |
axiom-0.1.1 | spec/unit/axiom/relation/operation/offset/insert_spec.rb |