Sha256: 08b67669c67a90b930bcd76fbb4961e59e488e25a2d1f78e2ffcf2d4792df9cd
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
require 'spec_helper' module Finitio describe RelationType, "initialize" do let(:heading){ Heading.new([Attribute.new(:a, intType)]) } context 'with a valid heading' do subject{ RelationType.new(heading) } it{ should be_a(RelationType) } end context 'with an invalid heading' do subject{ RelationType.new("foo", "bar") } it 'should raise an error' do ->{ subject }.should raise_error(ArgumentError, "Heading expected, got `foo`") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finitio-0.4.1 | spec/unit/type/relation_type/test_initialize.rb |
finitio-0.4.0 | spec/unit/type/relation_type/test_initialize.rb |