Sha256: 4b092b83573fdfcd737ab9c264fa86f2a15094b976009a851169c13f08fc02cf
Contents?: true
Size: 818 Bytes
Versions: 2
Compression:
Stored size: 818 Bytes
Contents
# frozen_string_literal: true module Hyrax module Test ## # A generic PCDM Work, with only Hyrax "core" (required) metadata. # # @example building with FactoryBot # work = FactoryBot.build(:hyrax_work, :public, title: ['Comet in Moominland']) # # @example creating with FactoryBot # work = FactoryBot.valkyrie_create(:hyrax_work, :public, title: ['Comet in Moominland']) class SimpleWork < Hyrax::Work; end class SimpleWorkLegacy < ActiveFedora::Base include WorkBehavior include CoreMetadata end class SimpleWorkSearchBuilder < Hyrax::WorkSearchBuilder def work_types [Hyrax::Test::SimpleWorkLegacy] end end end end Wings::ModelRegistry.register(Hyrax::Test::SimpleWork, Hyrax::Test::SimpleWorkLegacy) if defined?(Wings)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyrax-5.0.0 | spec/support/simple_work.rb |
hyrax-5.0.0.rc3 | spec/support/simple_work.rb |