Sha256: 5562b2152c869ad11c00381de45872a6d6f8e1baea04ab65ddd901d9b86463d9

Contents?: true

Size: 905 Bytes

Versions: 12

Compression:

Stored size: 905 Bytes

Contents

describe Unidom::Action::Obsolescing, type: :model do

  before :each do
  end

  after :each do
  end

  context do

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

    it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
    it_behaves_like 'Unidom::Action::Concerns::AsCaused',       model_attributes

    it_behaves_like 'ProgneTapera::EnumCode', described_class.new(model_attributes), :obsolescence, Unidom::Action::Obsolescence

  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
unidom-action-2.0 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.18 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.17 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.16 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.15 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.13 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.14 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.12 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.11 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.10 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.9 lib/rspec/models/unidom/action/obsolescing_spec.rb
unidom-action-1.17.8 lib/rspec/models/unidom/action/obsolescing_spec.rb