Sha256: 44b5ca72fb6a9f364054a89e18ece773a7b748b7dfb84a440bea43f992a49e1d

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

require 'optimizer_helper'
module Alf
  describe "quota" do

    let(:summarization){
      Summarization.coerce(:total => Aggregator.sum{ qty })
    }

    subject{ quota(an_operand, [:id], [[:x, :asc]], summarization) }

    let(:split_attributes){ subject.summarization.to_attr_list }

    it_should_behave_like "a split-able expression for restrict"

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-optimizer/test_quota.rb