Sha256: c063f5adc5e1e935d2d9904f5327aef77e56bbed4329fe47dbee1e8ddfc18156
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
describe Unidom::Party::PartyRelation, type: :model do before :each do end after :each do end context do tim_attributes = { name: 'Tim' } tom_attributes = { name: 'Tom' } friendship_attributes = { linkage_code: 'FRND', priority: 1, grade: 5 } it_behaves_like 'Unidom::Common::Concerns::ModelExtension', friendship_attributes.merge({ source_party_id: Unidom::Common::NULL_UUID, source_party_type: 'Unidom::Party::Person', target_party_id: Unidom::Common::NULL_UUID, target_party_type: 'Unidom::Party::Person' #, #priority: nil, #grade: nil }) it_behaves_like 'belongs_to', friendship_attributes.merge({ target_party_id: Unidom::Common::NULL_UUID, target_party_type: 'Unidom::Party::Person' }), :source_party, Unidom::Party::Person, tim_attributes it_behaves_like 'belongs_to', friendship_attributes.merge({ source_party_id: Unidom::Common::NULL_UUID, source_party_type: 'Unidom::Party::Person' }), :target_party, Unidom::Party::Person, tom_attributes end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unidom-party-1.8.5 | lib/rspec/models/unidom/party/party_relation_spec.rb |
unidom-party-1.8.4 | lib/rspec/models/unidom/party/party_relation_spec.rb |