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 authored and dunn committed Aug 31, 2023
1 parent c19b41c commit f53c41d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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(:monograph) }
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 Expand Up @@ -34,7 +34,7 @@

it "draws the page" do
expect(page).to have_content('Administrative Set')
expect(page).to have_selector('select#generic_work_admin_set_id')
expect(page).to have_selector('select#monograph_admin_set_id')
end
end

Expand Down

0 comments on commit f53c41d

Please sign in to comment.