Sha256: b25f0bc40b3d06af60e2ea011c5443d5aefa5be8a0439ba220532a3a6c7551cf
Contents?: true
Size: 383 Bytes
Versions: 3
Compression:
Stored size: 383 Bytes
Contents
require 'spec_helper' module Qrb describe UnionType, "name" do subject{ type.name } context 'when not provided' do let(:type){ UnionType.new([intType, floatType]) } it{ should eq('intType|floatType') } end context 'when provided' do let(:type){ UnionType.new([intType, floatType], "union") } it{ should eq('union') } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | spec/unit/type/union_type/test_name.rb |
qrb-0.2.0 | spec/unit/type/union_type/test_name.rb |
qrb-0.1.0 | spec/unit/type/union_type/test_name.rb |