Sha256: 8723cca685920e4dd39b9269aff43b3f034a4a5d59f4d2e35abfc12fba1dfd50

Contents?: true

Size: 513 Bytes

Versions: 3

Compression:

Stored size: 513 Bytes

Contents

require 'spec_helper'

describe AQL::Node::Operation::Unary::Filter, '#aql' do
  let(:object) { described_class.new(expression) }

  context 'with constant binary expression' do
    let(:expression)   { AQL::Node::Literal.build(true) }

    expect_aql('FILTER true')
  end

  context 'with binary expression' do
    let(:expression) do
      foo = AQL::Node::Name.new('foo')
      AQL::Node::Operator::Binary::LessThan.new(foo, AQL::Node::Literal.build(9))
    end

    expect_aql('FILTER (`foo` < 9)')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aql-0.0.3 spec/unit/aql/node/operation/unary/filter/aql_spec.rb
aql-0.0.2 spec/unit/aql/node/operation/unary/filter/aql_spec.rb
aql-0.0.1 spec/unit/aql/node/operation/unary/filter/aql_spec.rb