Sha256: 736b7ad19c936e05a1faf901041bbcf6fb157b4dd1c3c7382adf6f6f42503a2e
Contents?: true
Size: 571 Bytes
Versions: 1
Compression:
Stored size: 571 Bytes
Contents
require 'compiler_helper' module Alf class Compiler describe Default, "coerce" do subject{ compiler.call(expr) } let(:expr){ coerce(an_operand(leaf), a: String) } it_should_behave_like "a traceable compiled" it 'has a Coerce cog' do subject.should be_a(Engine::Coerce) end it 'has the correct coercion heading' do subject.coercions.should eq(Heading[a: String]) 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_coerce.rb |