Sha256: dc162507512feaab7c4a9584d0b56cb92822534519c920aaa1b6ec86d641fe67

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

require 'spec_helper'

describe AQL::Node::Operator::Binary, '#aql' do
  let(:class_under_test) do
    Class.new(described_class) do
      const_set('SYMBOL', '||')
    end
  end

  let(:left)  { AQL::Node::Literal.build(true)  }
  let(:right) { AQL::Node::Literal.build(false) }
  let(:object) { class_under_test.new(left, right) }

  expect_aql('(true || false)')
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aql-0.0.3 spec/unit/aql/node/operator/binary/aql_spec.rb
aql-0.0.2 spec/unit/aql/node/operator/binary/aql_spec.rb
aql-0.0.1 spec/unit/aql/node/operator/binary/aql_spec.rb