Sha256: 76d6f21696b09f24a5f5433bab52a92e9a757a2de3d214fe5d8375257d0b8d9a
Contents?: true
Size: 561 Bytes
Versions: 19
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' module Finitio describe SeqType, 'initialize' do subject{ SeqType.new(intType) } context 'with valid arguments' do it{ should be_a(SeqType) } it 'should set the instance variables' do expect(subject.elm_type).to eq(intType) end end context 'with invalid arguments' do subject{ SeqType.new("foo") } it 'should raise an error' do expect{ subject }.to raise_error(ArgumentError, 'Finitio::Type expected, got `foo`') end end end end
Version data entries
19 entries across 19 versions & 1 rubygems