Sha256: a1e22f61abab8ed79638bec566c74c6f1e3804b1cf8af06bf3b433c4d3d87c2c
Contents?: true
Size: 785 Bytes
Versions: 19
Compression:
Stored size: 785 Bytes
Contents
require 'spec_helper' module Finitio describe TypeFactory, "DSL#multi_relation" do let(:factory){ TypeFactory.new } let(:heading){ Heading.new([ Attribute.new(:a, intType, false) ]) } shared_examples_for "The Relation[a :? Int] type" do it{ should be_a(MultiRelationType) } it 'should have the correct heading' do expect(subject.heading).to eq(heading) end end before do subject end context 'when used with the standard signature' do subject{ factory.multi_relation(heading, "MyRelation") } it_should_behave_like "The Relation[a :? Int] type" it 'should have the correct name' do expect(subject.name).to eq("MyRelation") end end end end
Version data entries
19 entries across 19 versions & 1 rubygems