Sha256: c299e53dcbd97075afd29e0707e6dbff93fc5cd43e09abd569c66335f249c847
Contents?: true
Size: 433 Bytes
Versions: 3
Compression:
Stored size: 433 Bytes
Contents
require 'spec_helper' describe AQL::Node::Operation::Limit, '#aql' do let(:object) { described_class.new(count, offset) } context 'without offset' do let(:count) { AQL::Node::Literal.build(10) } let(:offset) { nil } expect_aql('LIMIT 10') end context 'with offset' do let(:count) { AQL::Node::Literal.build(10) } let(:offset) { AQL::Node::Literal.build(5) } expect_aql('LIMIT 5, 10') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aql-0.0.3 | spec/unit/aql/node/operation/limit/aql_spec.rb |
aql-0.0.2 | spec/unit/aql/node/operation/limit/aql_spec.rb |
aql-0.0.1 | spec/unit/aql/node/operation/limit/aql_spec.rb |