Sha256: a045c81b9f37f8e00460de3c1ba0fdb6d194a544f34e007bd69138700d873397
Contents?: true
Size: 451 Bytes
Versions: 3
Compression:
Stored size: 451 Bytes
Contents
require 'spec_helper' module Qrb describe BuiltinType, "name" do subject{ type.name } context 'when not provided' do let(:type){ BuiltinType.new(Integer) } it 'uses the default name' do subject.should eq("Integer") end end context 'when provided' do let(:type){ BuiltinType.new(Integer, "int") } it 'uses the specified name' do subject.should eq("int") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | spec/unit/type/builtin_type/test_name.rb |
qrb-0.2.0 | spec/unit/type/builtin_type/test_name.rb |
qrb-0.1.0 | spec/unit/type/builtin_type/test_name.rb |