Sha256: 29d25e705696019fdcb5b75181a41776f8d217b72f217dfd3ce78e3182f4c025
Contents?: true
Size: 555 Bytes
Versions: 1
Compression:
Stored size: 555 Bytes
Contents
require 'compiler_helper' module Alf class Compiler describe Default, "autonum" do subject{ compiler.call(expr) } let(:expr){ autonum(an_operand(leaf), :foo) } it_should_behave_like "a traceable compiled" it 'is an Autonum cog' do subject.should be_a(Engine::Autonum) end it 'has the correct autonum attribute name' do subject.as.should eq(:foo) 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_autonum.rb |