Sha256: f8ff0bc04e4ddca92fe5da5b9a3d9b8e9a944d1796993a7037753d8da2c7389d

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 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)   { 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 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/delete_spec.rb