Sha256: 890c26c521ac59e2cd6bbb910668bae4cbe8db75824b7372885a9d0cb47416fb
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 Bytes
Contents
require 'spec_helper' module Qrb 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 subject.heading.should eq(heading) end end context 'with an invalid heading' do subject{ TupleType.new("foo") } it 'should raise an error' do ->{ subject }.should raise_error(ArgumentError, "Heading expected, got `foo`") end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | spec/unit/type/tuple_type/test_initialize.rb |
qrb-0.2.0 | spec/unit/type/tuple_type/test_initialize.rb |
qrb-0.1.0 | spec/unit/type/tuple_type/test_initialize.rb |