Sha256: 7dc1fa44094f12bb5a9e138c9f52478bdda84d4d09080f2f443c4677be41a6b3
Contents?: true
Size: 433 Bytes
Versions: 3
Compression:
Stored size: 433 Bytes
Contents
require 'spec_helper' module Qrb describe RelationType, "name" do let(:heading){ Heading.new([Attribute.new(:a, byte)]) } subject{ type.name } context 'when not provided' do let(:type){ RelationType.new(heading) } it{ should eq("{{a: Byte}}") } end context 'when provided' do let(:type){ RelationType.new(heading, "colors") } it{ should eq("colors") } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | spec/unit/type/relation_type/test_name.rb |
qrb-0.2.0 | spec/unit/type/relation_type/test_name.rb |
qrb-0.1.0 | spec/unit/type/relation_type/test_name.rb |