uclibs / ucrate

Scholar@UC: University of Cincinnati's self-submission institutional repository
https://scholar.uc.edu
Other
5 stars 3 forks source link

HUT : Broken Controller Test #1138

Open scherztc opened 7 months ago

scherztc commented 7 months ago

Descriptive summary

568) Hyrax::GenericWorksController#update when the user has write access to the file changing rights when the work has file sets attached prompts to change the files access Failure/Error: expect(response).to redirect_to main_app.confirm_hyrax_permission_path(controller.curation_concern, locale: 'en')

     Expected response to be a redirect to <http://test.host/concern/permissions/1072/confirm?locale=en> but was a redirect to <http://test.host/concern/generic_works/1072?locale=en>.
     Expected "http://test.host/concern/permissions/1072/confirm?locale=en" to be === "http://test.host/concern/generic_works/1072?locale=en".
   # ./spec/controllers/concerns/scholar/work_controller_behavior_spec.rb:198:in `block (6 levels) in <top (required)>'

Expected behavior

Actual behavior

Steps to reproduce the behavior

  1. Do this
  2. Then do this...

Related work

Link to related issues or prior related work here.

crowesn commented 6 months ago

https://github.com/samvera/hyrax/commit/33a4ea7b29fc1f1cf3b77226facf59beba395bbf

crowesn commented 6 months ago

@scherztc

Progress on this issue is blocked by https://github.com/uclibs/ucrate/issues/1133