Sha256: 2fd036fcbd063c1844b9b49544486c2d37bbd1a364dfac541fc27e4f44071004

Contents?: true

Size: 369 Bytes

Versions: 3

Compression:

Stored size: 369 Bytes

Contents

require 'spec_helper'
module Qrb
  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

3 entries across 3 versions & 1 rubygems

Version Path
qrb-0.3.0 spec/unit/type/set_type/test_name.rb
qrb-0.2.0 spec/unit/type/set_type/test_name.rb
qrb-0.1.0 spec/unit/type/set_type/test_name.rb