Skip to content

Commit

Permalink
Don't use deprecated stub method
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jun 16, 2016
1 parent 28dd95f commit 69897dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/views/sufia/batch_uploads/_form.html.erb_spec.rb
Expand Up @@ -11,10 +11,10 @@
view.lookup_context.view_paths.push 'app/views/sufia/batch_uploads'
view.lookup_context.view_paths.push 'app/views/curation_concerns/base'
allow(view).to receive(:curation_concern).and_return(work)
allow(controller).to receive(:current_user).and_return(user)
assign(:form, form)
controller.stub(:controller_name).and_return('batch_uploads')
controller.stub(:action_name).and_return('new')
allow(controller).to receive_messages(current_user: user,
controller_name: 'batch_uploads',
action_name: 'new')
end

let(:page) do
Expand Down

0 comments on commit 69897dc

Please sign in to comment.