Sha256: 6875ebcf9361a2f32051063e542a2289778f8cd1ed2b76795cd08ead09996191
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
shared_examples 'Unidom::Party::Concerns::AsTargetParty' do |model_attributes| context do source_person_1 = Unidom::Party::Person.create! name: 'Tim' source_person_2 = Unidom::Party::Person.create! name: 'Tom' source_party_relation_1_attributes = { source_party: source_person_1 } source_party_relation_2_attributes = { source_party: source_person_2 } it_behaves_like 'has_many', model_attributes, :source_party_relations, Unidom::Party::PartyRelation, [ source_party_relation_1_attributes, source_party_relation_2_attributes ] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-party-1.9.6 | lib/rspec/models/unidom/party/concerns/as_target_party_shared_examples.rb |