Sha256: eac08b64d2f734227c5b194a1b9c49ed60bcedf0cfeb08ab3a97d939710c2dcd

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

require 'spec_helper'

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

  context 'with scalar expression' do
    let(:expression)   { AQL::Node::Literal.build(1) }

    expect_aql('RETURN 1')
  end

  context 'with document expression' do
    let(:expression)   { AQL::Node::Literal.build(1 => 1) }

    expect_aql('RETURN {1: 1}')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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