Sha256: 7691d4d01961770b17e39b6ae980c315dbdb37ae86acf37ad4d21ab8489014e3
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Algebra::Summarization, '#insert' do subject { object.insert(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, 'inserting into 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/insert_spec.rb |