Sha256: 899d7a608d4cfba536f7c301c5b634631ac4b040c366cc43a251a3ce70e71b86
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Summarization, '#summarize_per' do subject { object.summarize_per } let(:base) { Relation.new([[:id, Integer]], [[1]]) } let(:relation) { base.summarize(summarize_per) {} } let(:object) { described_class.new(relation) } before do expect(object.operation).to be_kind_of(Algebra::Summarization) end context 'when summarize_per is optimized' do let(:summarize_per) { TABLE_DEE } it { should be(summarize_per) } end context 'when summarize_per is not not optimized' do let(:summarize_per) { TABLE_DEE.rename({}) } it { should_not be(summarize_per) } it { should be(TABLE_DEE) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.2.0 | spec/unit/axiom/optimizer/algebra/summarization/summarize_per_spec.rb |