Skip to content

Commit

Permalink
Include Rails url_helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Mar 11, 2022
1 parent 2fef3db commit d71a84b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/hyrax/hyrax_helper_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module HyraxHelperBehavior
include Hyrax::PermissionLevelsHelper
include Hyrax::WorkFormHelper
include Hyrax::WorkflowsHelper
include Rails.application.routes.url_helpers

##
# @return [Array<String>] the list of all user groups
Expand Down
13 changes: 13 additions & 0 deletions spec/features/edit_work_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,17 @@
expect(page).to have_selector('#new_group_name_skel', text: 'librarians admin donor')
end
end

context 'with a parent Valkyrie resource' do
let(:monograph) { FactoryBot.valkyrie_create(:monograph, :with_member_works) }

before do
sign_in user_admin
end

it 'displays an edit page with a relationships tab' do
visit edit_hyrax_monograph_path(monograph)
expect(page).to have_link("Relationships")
end
end
end

0 comments on commit d71a84b

Please sign in to comment.