Sha256: 0f46c6dbe23650ecdf71e29d8de2ff1e61f1c53259a886cf252352a744160459

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

shared_examples 'Unidom::Accession::Concerns::AsPostFulfilled' do |model_attributes|

  post_fulfillment_1_attribtues = {
      fulfiller_id:   SecureRandom.uuid,
      fulfiller_type: 'Unidom::Accession::Fulfiller::Mock'
    }

  post_fulfillment_2_attribtues = {
      fulfiller_id:   SecureRandom.uuid,
      fulfiller_type: 'Unidom::Accession::Fulfiller::Mock'
    }

  it_behaves_like 'has_many', model_attributes, :post_fulfillments, Unidom::Accession::PostFulfillment, [ post_fulfillment_1_attribtues, post_fulfillment_2_attribtues ]

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-accession-2.3.2 lib/rspec/models/unidom/accession/concerns/as_post_fulfilled_shared_examples.rb