Sha256: a33d75d6c351e1dd12f9132866f87da7a332ad255e148716caa0a74ce6cf20d7

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 Bytes

Contents

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

      subject{
        compiler.call(expr)
      }

      let(:expr){
        ungroup(an_operand(leaf), :a)
      }

      it_should_behave_like "a traceable compiled"

      it 'has a Ungroup cog' do
        subject.should be_a(Engine::Ungroup)
      end

      it 'has the correct ungrouping attribute' do
        subject.attribute.should eq(:a)
      end

      it 'has the correct sub-cog' do
        subject.operand.should be(leaf)
      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_ungroup.rb