Sha256: 84dd95a327a094caf20b49c0fba505d25f9e7b87c894898e1b3189b13337fef5
Contents?: true
Size: 621 Bytes
Versions: 19
Compression:
Stored size: 621 Bytes
Contents
require 'spec_helper' module Finitio describe MultiRelationType, "initialize" do let(:heading){ Heading.new([ Attribute.new(:a, intType), Attribute.new(:b, intType, false) ]) } context 'with a valid heading' do subject{ MultiRelationType.new(heading) } it{ should be_a(MultiRelationType) } end context 'with an invalid heading' do subject{ MultiRelationType.new("foo", "bar") } 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