Sha256: c7a91a5750e2dd8b2435007a8bd8b9e69c7cd93d7c33e9e2d462c0fa3abdf7b9
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
require 'compiler_helper' module Alf class Compiler describe Default, "group" do subject{ compiler.call(expr) } let(:expr){ group(an_operand(leaf), [:foo, :bar], :baz, allbut: true) } it_should_behave_like "a traceable compiled" it 'has a Group cog' do subject.should be_a(Engine::Group) end it 'has the correct grouping' do subject.attributes.should eq(AttrList[:foo, :bar]) end it 'has the correct as' do subject.as.should eq(:baz) end it 'has the correct allbut' do subject.allbut.should be_true 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_group.rb |