Sha256: 10e0c1ad8f2b53618bf88efac18a90fca961418d91b6b4d641e0c25654f457f2

Contents?: true

Size: 424 Bytes

Versions: 21

Compression:

Stored size: 424 Bytes

Contents

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

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

    subject{ type.name }

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

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

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

      it{ should eq("Color") }
    end

  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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