Skip to content

Commit

Permalink
Eliminates duplicate Collection relation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwatson78 committed Jun 14, 2022
1 parent 78c67d8 commit c650aca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
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

0 comments on commit c650aca

Please sign in to comment.