Skip to content

Commit

Permalink
Don't explicitly load workflows.
Browse files Browse the repository at this point in the history
Workflows are loaded automatically when the admin set is created.

See:
https://github.com/projecthydra-labs/hyrax/blob/master/app/services/hyrax/admin_set_create_service.rb#L63
  • Loading branch information
jcoyne committed May 24, 2017
1 parent 43221d6 commit 649a440
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/services/create_account.rb
Expand Up @@ -26,7 +26,6 @@ def create_external_resources
def create_tenant
Apartment::Tenant.create(account.tenant) do
initialize_account_data
Hyrax::Workflow::WorkflowImporter.load_workflows
account.switch do
AdminSet.find_or_create_default_admin_set_id
end
Expand Down
2 changes: 1 addition & 1 deletion spec/services/create_account_spec.rb
Expand Up @@ -12,7 +12,7 @@
expect(Apartment::Tenant).to receive(:create).with(account.tenant) do |&block|
block.call
end
expect(Hyrax::Workflow::WorkflowImporter).to receive(:load_workflows)
expect(AdminSet).to receive(:find_or_create_default_admin_set_id)
subject.create_tenant
expect(Site.reload.account).to eq account
end
Expand Down

0 comments on commit 649a440

Please sign in to comment.