Skip to content

Commit

Permalink
use valkyrie for setup on _form_relationships partial spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsin johnson committed Aug 31, 2023
1 parent 2fcf145 commit 184794f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/views/hyrax/base/_form_relationships.html.erb_spec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# frozen_string_literal: true
RSpec.describe 'hyrax/base/_form_relationships.html.erb', type: :view do
let(:ability) { double }
let(:work) { GenericWork.new }
let(:work) { FactoryBot.build(:hyrax_work) }
let(:form) do
Hyrax::GenericWorkForm.new(work, ability, controller)
Hyrax::Forms::ResourceForm.for(work).prepopulate!
end
let(:service) { instance_double Hyrax::AdminSetService }
let(:presenter) { instance_double Hyrax::AdminSetOptionsPresenter, select_options: [] }
Expand Down

0 comments on commit 184794f

Please sign in to comment.