Sha256: b57857a9281c85c463c03e9ce1b32c7194a51b687aaca4157ecffba5d3a6b0ec
Contents?: true
Size: 610 Bytes
Versions: 3
Compression:
Stored size: 610 Bytes
Contents
require 'spec_helper' module Qrb describe Heading, "to_name" do subject{ Heading.new(attributes).to_name } context 'with no attribute' do let(:attributes){ [ ] } it{ should eq('') } end context 'with one attribute' do let(:attributes){ [ Attribute.new(:red, intType) ] } it{ should eq('red: intType') } end context 'with multiple attributes' do let(:attributes){ [ Attribute.new(:red, intType), Attribute.new(:blue, floatType) ] } it{ should eq('red: intType, blue: floatType') } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | spec/unit/heading/test_to_name.rb |
qrb-0.2.0 | spec/unit/heading/test_to_name.rb |
qrb-0.1.0 | spec/unit/heading/test_to_name.rb |