Sha256: 927f3b2063bd37fd95ccf727c326f81c4c70b8011ebaf24c99df5a7e038576ba

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Summarization, '#delete' do
  subject { object.delete(other) }

  let(:object)       { described_class.new(operand, summarize_by, summarizers) }
  let(:other)        { stub('other')                                           }
  let(:operand)      { Relation.new([ [ :id, Integer ] ], [])                  }
  let(:summarize_by) { operand.project([])                                     }
  let(:summarizers)  { { :test => 1 }                                          }

  specify { expect { subject }.to raise_error(ImmutableRelationError, 'deleting from a summarization is impossible') }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/algebra/summarization/delete_spec.rb