Sha256: 9c3c430285f1f1c9b6cebf910749b963f5fef61e6c082a77c3cad3089af931bf
Contents?: true
Size: 464 Bytes
Versions: 19
Compression:
Stored size: 464 Bytes
Contents
require 'spec_helper' module Finitio describe StructType, "initialize" do context 'with valid components' do subject{ StructType.new([intType]) } it{ should be_a(StructType) } end context 'with invalid components' do subject{ StructType.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