Sha256: 89288c083375714b2a8a22d4629eadbab821de9c46ff8374abe9dce512533ce0
Contents?: true
Size: 503 Bytes
Versions: 2
Compression:
Stored size: 503 Bytes
Contents
require 'spec_helper' module Qrb describe Syntax, "attribute" do subject{ Syntax.parse(input, root: "attribute") } let(:compiled){ subject.compile(type_factory) } context 'a: .Integer' do let(:input){ 'a: .Integer' } it 'compiles to an Attribute' do compiled.should be_a(Attribute) compiled.name.should eq(:a) compiled.type.should be_a(BuiltinType) compiled.type.ruby_type.should be(Integer) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.2.0 | spec/unit/syntax/nodes/test_attribute.rb |
qrb-0.1.0 | spec/unit/syntax/nodes/test_attribute.rb |