Sha256: cc1c1cf3b8b0491e26a4a6d6e52959a3fb43648139786e6753a468e6aa832fb6

Contents?: true

Size: 821 Bytes

Versions: 6

Compression:

Stored size: 821 Bytes

Contents

shared_examples 'Unidom::Action::Concerns::AsActorParty' do |model_attributes|

  context do

    acting_1_attributes = {
      acted_id:           SecureRandom.uuid,
      acted_type:         'Unidom::Action::Acted::Mock',
      actor_visitor_id:   SecureRandom.uuid,
      actor_visitor_type: 'Unidom::Action::ActorVisitor::Mock',
      reason_id:          SecureRandom.uuid
    }

    acting_2_attributes = {
      acted_id:           SecureRandom.uuid,
      acted_type:         'Unidom::Action::Acted::Mock',
      actor_visitor_id:   SecureRandom.uuid,
      actor_visitor_type: 'Unidom::Action::ActorVisitor::Mock',
      reason_id:          SecureRandom.uuid
    }

    it_behaves_like 'has_many', model_attributes, :acted_actings, Unidom::Action::Acting, [ acting_1_attributes, acting_2_attributes ]

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
unidom-action-1.17.15 lib/rspec/models/unidom/action/concerns/as_actor_party_shared_examples.rb
unidom-action-1.17.13 lib/rspec/models/unidom/action/concerns/as_actor_party_shared_examples.rb
unidom-action-1.17.14 lib/rspec/models/unidom/action/concerns/as_actor_party_shared_examples.rb
unidom-action-1.17.12 lib/rspec/models/unidom/action/concerns/as_actor_party_shared_examples.rb
unidom-action-1.17.11 lib/rspec/models/unidom/action/concerns/as_actor_party_shared_examples.rb
unidom-action-1.17.10 lib/rspec/models/unidom/action/concerns/as_actor_party_shared_examples.rb