Sha256: 857eb09bbf936d9ce42afc1c89ecc60ff1d486d6533081c51eba86a6956ebef2
Contents?: true
Size: 1014 Bytes
Versions: 5
Compression:
Stored size: 1014 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 'ProgneTapera::EnumCode', described_class.new(model_attributes), :obsolescence, Unidom::Action::Obsolescence it_behaves_like 'belongs_to', model_attributes, :reason, Unidom::Action::Reason, { name: 'Some Reason' } it_behaves_like 'monomorphic scope', model_attributes, :caused_by, :reason end end
Version data entries
5 entries across 5 versions & 1 rubygems