Sha256: 15e086cd2dd053ebee9ce2a327cbded67e79052e02577cd7a6214eadb2939948
Contents?: true
Size: 497 Bytes
Versions: 4
Compression:
Stored size: 497 Bytes
Contents
require 'spec_helper' describe Axiom::Adapter::Arango::Visitor::Aggregate::Count, '#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(:count, r.foo.count) }.summarizers.values.first } expect_aql <<-AQL LENGTH((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