Sha256: 6e80342c98fa45a04988807c86740a5a40de4a31f243bae52cae829d12cd2104
Contents?: true
Size: 493 Bytes
Versions: 19
Compression:
Stored size: 493 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 expect(subject.name).to eq("Int") end end end end
Version data entries
19 entries across 19 versions & 1 rubygems