diff --git a/spec/views/hyrax/base/_form_share.erb_spec.rb b/spec/views/hyrax/base/_form_share.erb_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/views/hyrax/base/_form_share.erb_spec.rb
+++ b/spec/views/hyrax/base/_form_share.erb_spec.rb
@@ -1,6 +1,7 @@
 # frozen_string_literal: true
 RSpec.describe 'hyrax/base/_form_share.html.erb', type: :view do
-  let(:ability) { double }
+  let(:ability) { instance_double(Ability, admin?: false, user_groups: [], current_user: user) }
+  let(:user) { stub_model(User) }
   let(:work) { GenericWork.new }
   let(:form) do
     Hyrax::GenericWorkForm.new(work, ability, controller)
@@ -24,10 +25,8 @@ RSpec.describe 'hyrax/base/_form_share.html.erb', type: :view do
   end
 
   before do
-    user = stub_model(User)
     allow(view).to receive(:current_ability).and_return(ability)
     allow(view).to receive(:current_user).and_return(user)
-    allow(ability).to receive(:admin?).and_return(false)
     allow(view).to receive(:action_name).and_return('new')
   end
Fixing spec to account for upstream changes

The previous commit (fde<I>eeb<I>cb8ed<I>ed<I>f<I>c5da3f<I>ef) was
worked on over a year ago, and recently re-opened and rebased against
the main branch.

In that time, aspects of the implementation have changed.