Sha256: 65bc501c77a865cbd28d470b0878fd9137bd7b7727bf0d8c60b984effa1aadaa

Contents?: true

Size: 620 Bytes

Versions: 1

Compression:

Stored size: 620 Bytes

Contents

require 'compiler_helper'
module Alf
  class Compiler
    describe Default, "join" do

      subject{
        compiler.call(expr)
      }

      let(:right){
        compact(an_operand)
      }

      let(:expr){
        join(an_operand(leaf), right)
      }

      it_should_behave_like "a traceable compiled"

      it 'is a Join::Hash cog' do
        subject.should be_a(Engine::Join::Hash)
      end

      it 'has the correct left sub-cog' do
        subject.left.should be(leaf)
      end

      it 'has the correct right sub-cog' do
        subject.right.should be_a(Engine::Compact)
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-compiler/default/test_join.rb