Sha256: fa8ef9f27e0bfa2d7f2db87ca5ae759b9652dde0b26464e67240d1ac92ba4938
Contents?: true
Size: 542 Bytes
Versions: 19
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 expect{ subject }.to raise_error(ArgumentError, "Heading expected, got `foo`") end end end end
Version data entries
19 entries across 19 versions & 1 rubygems