Sha256: 55bb7b43fce4200a94a92ecd28ac2ac781eb1be26f056000109f9d2837a73077

Contents?: true

Size: 373 Bytes

Versions: 21

Compression:

Stored size: 373 Bytes

Contents

require 'spec_helper'
module Finitio
  describe SetType, 'name' do

    subject{ type.name }

    context 'when not specified' do
      let(:type){
        SetType.new(intType)
      }

      it{ should eq('{intType}') }
    end

    context 'when specified' do
      let(:type){
        SetType.new(intType, "foo")
      }

      it{ should eq('foo') }
    end

  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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