Sha256: aa7850cf8f6d09dd1c854ef8eb7637136ae42382b736bc87d9fdbac4f54cd705
Contents?: true
Size: 537 Bytes
Versions: 4
Compression:
Stored size: 537 Bytes
Contents
require 'spec_helper' describe Axiom::Adapter::Arango::Visitor::For::Unary::Limit, '#root' do subject { object.root } let(:relation) { base.sort_by { |r| [r.foo.asc, r.bar.asc] }.take(5) } expect_aql <<-AQL FOR `limit` IN (FOR `order` IN (FOR `base` IN `name` RETURN {"foo": `base`.`foo`, "bar": `base`.`bar`}) SORT `order`.`foo` ASC, `order`.`bar` ASC RETURN {"foo": `order`.`foo`, "bar": `order`.`bar`}) LIMIT 0, 5 RETURN {"foo": `limit`.`foo`, "bar": `limit`.`bar`} AQL end
Version data entries
4 entries across 2 versions & 1 rubygems