Skip to content

Commit 0a063cb

Browse files
committed
mock existence of default admin set in spec
1 parent 61a344d commit 0a063cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/requests/work_depositor_role_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
end
7474

7575
it 'can see the work form' do
76+
allow(AdminSet).to receive(:first).and_return(OpenStruct.new(id: 'admin_set/default'))
7677
get new_hyrax_generic_work_path
7778

7879
expect(response).to have_http_status(:success)

0 commit comments

Comments
 (0)