Sha256: 3c15d5c7623b809eaf6c0c812a4218e2f26c1ac2eda50d99e01c8644e7419bdb

Contents?: true

Size: 701 Bytes

Versions: 1

Compression:

Stored size: 701 Bytes

Contents

shared_examples 'Unidom::Contact::Concerns::AsSubscriber' do |model_attributes|

  contact_subscription_1_attribtues = {
      contact_id:   SecureRandom.uuid,
      contact_type: 'Unidom::Contact::Contact::Mock',
      name:         'Name #1',
      grade:        5,
      priority:     2
    }

  contact_subscription_2_attribtues = {
      contact_id:   SecureRandom.uuid,
      contact_type: 'Unidom::Contact::Contact::Mock',
      name:         'Name #2',
      grade:        2,
      priority:     4
    }

  it_behaves_like 'has_many', model_attributes, :contact_subscriptions, Unidom::Contact::ContactSubscription, [ contact_subscription_1_attribtues, contact_subscription_2_attribtues ]

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-contact-1.4.4 lib/rspec/models/unidom/contact/concerns/as_subscriber_shared_examples.rb