Sha256: ead5686d00bcf6f21f125640a8265bcc6bcd1f05044ec33c61964442d099dad5
Contents?: true
Size: 632 Bytes
Versions: 19
Compression:
Stored size: 632 Bytes
Contents
require 'spec_helper' module Finitio describe TupleType, "initialize" do let(:heading){ Heading.new([Attribute.new(:a, intType)]) } context 'with a valid heading' do subject{ TupleType.new(heading) } it{ should be_a(TupleType) } it 'correctly sets the instance variable' do expect(subject.heading).to eq(heading) end end context 'with an invalid heading' do subject{ TupleType.new("foo") } it 'should raise an error' do expect{ subject }.to raise_error(ArgumentError, "Heading expected, got `foo`") end end end end
Version data entries
19 entries across 19 versions & 1 rubygems