Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminates duplicate Collection relation. #5669

Merged
merged 5 commits into from Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/presenters/hyrax/work_show_presenter.rb
Expand Up @@ -147,7 +147,7 @@ def tweeter
end

def presenter_types
Hyrax.config.registered_curation_concern_types.map(&:underscore) + ["collection"]
Hyrax.config.registered_curation_concern_types.map(&:underscore) + ["collection", "Collection"]
end

# @return [Array] presenters grouped by model name, used to show the parents of this object
cjcolvar marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
3 changes: 3 additions & 0 deletions spec/features/work_show_spec.rb
Expand Up @@ -132,6 +132,9 @@
expect(page).to have_content collection.title.first
expect(page).to have_content work.title.first
expect(page).to have_selector '.alert-success', text: 'Collection was successfully updated.'

visit work_path
expect(page).to have_selector 'a', text: collection.title.first, count: 1
end
end

Expand Down