Sha256: 4115580ad02f5f209ba046cae0888f58dcc50af382f511ddce03c60bd9aa0fd1
Contents?: true
Size: 492 Bytes
Versions: 4
Compression:
Stored size: 492 Bytes
Contents
require 'spec_helper' describe Axiom::Adapter::Arango::Visitor::Aggregate::Maximum, '#root' do let(:object) { described_class.new(relation, context) } let(:context) { AQL.name_node('collect') } subject { object.root } let(:relation) { base.summarize([:bar]) { |r| r.add(:max, r.foo.max) }.summarizers.values.first } expect_aql <<-AQL MAX((FOR `aggregate` IN `collect` FILTER (`aggregate`.`summarization`.`foo` != null) RETURN `aggregate`.`summarization`.`foo`)) AQL end
Version data entries
4 entries across 2 versions & 1 rubygems