Skip to content

Instantly share code, notes, and snippets.

@mark-dce
Last active September 17, 2022 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mark-dce/2e8832c0f525204aa89fa3d1a9e69041 to your computer and use it in GitHub Desktop.
Save mark-dce/2e8832c0f525204aa89fa3d1a9e69041 to your computer and use it in GitHub Desktop.
Hyrax tests that require workflows
# set up workflows for Sipity test (or use before context block to setup AdminSet outside of transactions)
# Hyrax::PermissionTemplate.create!(source_id: Hyrax::AdminSetCreateService::DEFAULT_ID)
# Hyrax::Workflow::WorkflowImporter.load_workflows
# Sipity::Workflow.activate!(permission_template: Hyrax::PermissionTemplate.last, workflow_name: Hyrax.config.default_active_workflow_name)
# alternately, delete default adminset to trigger recreation of default admin set and workflows
# default_admin_set = AdminSet.where(id: 'admin_set/default').first
# default_admin_set.delete(eradicate: true) if default_admin_set
@mark-dce
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment