Sha256: 7b2a82854ae74811be0a9929f056a285e1b0365f11ac3e906698b61f3b4590b0

Contents?: true

Size: 1009 Bytes

Versions: 9

Compression:

Stored size: 1009 Bytes

Contents

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

  context do

    obsolescing_1_attributes = {
      obsolesced_id:           SecureRandom.uuid,
      obsolesced_type:         'Unidom::Action::Obsolesced::Mock',
      obsolescer_visitor_id:   SecureRandom.uuid,
      obsolescer_visitor_type: 'Unidom::Action::ObsolescerVisitor::Mock',
      reason_id:               SecureRandom.uuid,
      obsolescence_code:       'OBSL'
    }

    obsolescing_2_attributes = {
      obsolesced_id:           SecureRandom.uuid,
      obsolesced_type:         'Unidom::Action::Obsolesced::Mock',
      obsolescer_visitor_id:   SecureRandom.uuid,
      obsolescer_visitor_type: 'Unidom::Action::ObsolescerVisitor::Mock',
      reason_id:               SecureRandom.uuid,
      obsolescence_code:       'RCVR'
    }

    it_behaves_like 'has_many', model_attributes, :obsolesced_obsolescings, Unidom::Action::Obsolescing, [ obsolescing_1_attributes, obsolescing_2_attributes ]

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
unidom-action-2.0 lib/rspec/models/unidom/action/concerns/as_obsolescer_party_shared_examples.rb
unidom-action-1.17.18 lib/rspec/models/unidom/action/concerns/as_obsolescer_party_shared_examples.rb
unidom-action-1.17.17 lib/rspec/models/unidom/action/concerns/as_obsolescer_party_shared_examples.rb
unidom-action-1.17.16 lib/rspec/models/unidom/action/concerns/as_obsolescer_party_shared_examples.rb
unidom-action-1.17.15 lib/rspec/models/unidom/action/concerns/as_obsolescer_party_shared_examples.rb
unidom-action-1.17.13 lib/rspec/models/unidom/action/concerns/as_obsolescer_party_shared_examples.rb
unidom-action-1.17.14 lib/rspec/models/unidom/action/concerns/as_obsolescer_party_shared_examples.rb
unidom-action-1.17.12 lib/rspec/models/unidom/action/concerns/as_obsolescer_party_shared_examples.rb
unidom-action-1.17.11 lib/rspec/models/unidom/action/concerns/as_obsolescer_party_shared_examples.rb