Sha256: 916cb85226fe7ebc564dcc2ab3c1e9d7e5f38531f4c1063c02061e6eacac543b

Contents?: true

Size: 618 Bytes

Versions: 9

Compression:

Stored size: 618 Bytes

Contents

shared_examples 'Unidom::Party::Concerns::AsSourceParty' do |model_attributes|

  describe '#target_party_relations' do

    target_person_1 = Unidom::Party::Person.create! name: 'Tim'
    target_person_2 = Unidom::Party::Person.create! name: 'Tom'

    target_party_relation_1_attributes = { target_party: target_person_1 }
    target_party_relation_2_attributes = { target_party: target_person_2 }

    it_behaves_like 'has_many', model_attributes, :target_party_relations, Unidom::Party::PartyRelation, [ target_party_relation_1_attributes, target_party_relation_2_attributes ]

  end

  # relate!
  # relate?

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
unidom-party-1.9.6 lib/rspec/models/unidom/party/concerns/as_source_party_shared_examples.rb
unidom-party-1.9.5 lib/rspec/models/unidom/party/concerns/as_source_party_shared_examples.rb
unidom-party-1.9.4 lib/rspec/models/unidom/party/concerns/as_source_party_shared_examples.rb
unidom-party-1.9.3 lib/rspec/models/unidom/party/concerns/as_source_party_shared_examples.rb
unidom-party-1.9.2 lib/rspec/models/unidom/party/concerns/as_source_party_shared_examples.rb
unidom-party-1.9.1 lib/rspec/models/unidom/party/concerns/as_source_party_shared_examples.rb
unidom-party-1.9 lib/rspec/models/unidom/party/concerns/as_source_party_shared_examples.rb
unidom-party-1.8.5 lib/rspec/models/unidom/party/concerns/as_source_party_shared_examples.rb
unidom-party-1.8.4 lib/rspec/models/unidom/party/concerns/as_source_party_shared_examples.rb