Sha256: b47e378a58b1321e32ceb272b43e3cb422bdb4a6b01828b63d1aa157108199ef

Contents?: true

Size: 519 Bytes

Versions: 19

Compression:

Stored size: 519 Bytes

Contents

require 'spec_helper'
module Finitio
  describe MultiRelationType, "name" do

    let(:heading){
      Heading.new([
        Attribute.new(:a, byte),
        Attribute.new(:b, byte, false)
      ])
    }

    subject{ type.name }

    context 'when not provided' do
      let(:type){ MultiRelationType.new(heading) }

      it{ should eq("{{a: Byte, b :? Byte}}") }
    end

    context 'when provided' do
      let(:type){ MultiRelationType.new(heading, "colors") }

      it{ should eq("colors") }
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
finitio-0.12.0 spec/type/multi_relation_type/test_name.rb
finitio-0.11.4 spec/type/multi_relation_type/test_name.rb
finitio-0.11.3 spec/type/multi_relation_type/test_name.rb
finitio-0.11.2 spec/type/multi_relation_type/test_name.rb
finitio-0.11.1 spec/type/multi_relation_type/test_name.rb
finitio-0.10.0 spec/type/multi_relation_type/test_name.rb
finitio-0.9.1 spec/type/multi_relation_type/test_name.rb
finitio-0.9.0 spec/type/multi_relation_type/test_name.rb
finitio-0.8.0 spec/type/multi_relation_type/test_name.rb
finitio-0.7.0 spec/type/multi_relation_type/test_name.rb
finitio-0.7.0.pre.rc4 spec/type/multi_relation_type/test_name.rb
finitio-0.7.0.pre.rc3 spec/type/multi_relation_type/test_name.rb
finitio-0.7.0.pre.rc2 spec/type/multi_relation_type/test_name.rb
finitio-0.7.0.pre.rc1 spec/type/multi_relation_type/test_name.rb
finitio-0.6.1 spec/type/multi_relation_type/test_name.rb
finitio-0.6.0 spec/type/multi_relation_type/test_name.rb
finitio-0.5.2 spec/type/multi_relation_type/test_name.rb
finitio-0.5.1 spec/type/multi_relation_type/test_name.rb
finitio-0.5.0 spec/type/multi_relation_type/test_name.rb