Sha256: c7d36ec04acbc8425724cc3e5587364f12f3c6a51356af5bb9dc3259bd0d1f10
Contents?: true
Size: 511 Bytes
Versions: 2
Compression:
Stored size: 511 Bytes
Contents
require 'rspec' module Finitio describe System, "[]" do let(:system){ System.new } before do system.add_type(intType) end subject{ system[name] } context 'with an existing type name' do let(:name){ "intType" } it 'should return the type' do subject.should eq(intType) end end context 'with a non existing type name' do let(:name){ "noSuchOne" } it 'should return nil' do subject.should be_nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finitio-0.4.1 | spec/unit/system/test_get_type.rb |
finitio-0.4.0 | spec/unit/system/test_get_type.rb |