Sha256: f36b3aa3b1b4e6b25ae2b84bca89ade24ec229161abce99b5150d110e561c89e

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 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)   { 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, 'inserting into an offset is impossible') }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/relation/operation/offset/insert_spec.rb