Sha256: d9e9310941de36707b171f284c9cbdce691a5ea7f2e8f608f59858ac072ac03f
Contents?: true
Size: 561 Bytes
Versions: 19
Compression:
Stored size: 561 Bytes
Contents
require 'spec_helper' module Finitio describe SetType, 'initialize' do subject{ SetType.new(intType) } context 'with valid arguments' do it{ should be_a(SetType) } it 'should set the instance variables' do expect(subject.elm_type).to eq(intType) end end context 'with invalid arguments' do subject{ SetType.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