Sha256: 087fe38c42088955b35b0382dd068cc18a3f137f75b1470a5266de7501430b34
Contents?: true
Size: 489 Bytes
Versions: 2
Compression:
Stored size: 489 Bytes
Contents
require 'spec_helper' module Finitio describe TypeFactory, "Factory#builtin" do let(:factory){ TypeFactory.new } context 'when use with a ruby class' do subject{ factory.type(Integer) } it{ should eq(intType) } end context 'when use with a ruby class and a name' do subject{ factory.type(Integer, "Int") } it{ should eq(intType) } it 'should have the correct name' do subject.name.should eq("Int") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finitio-0.4.1 | spec/unit/type_factory/factory/test_builtin.rb |
finitio-0.4.0 | spec/unit/type_factory/factory/test_builtin.rb |