spec/views/hyrax/admin/admin_sets/index.html.erb_spec.rb in hyrax-2.3.3 vs spec/views/hyrax/admin/admin_sets/index.html.erb_spec.rb in hyrax-2.4.0
- old
+ new
@@ -11,11 +11,15 @@
expect(rendered).to have_content("No administrative sets have been created.")
end
end
context "when an admin set exists" do
- let(:admin_set) { build(:admin_set, id: '123', title: ['Example Admin Set'], creator: ['jdoe@example.com']) }
- let(:solr_doc) { SolrDocument.new(admin_set.to_solr) }
+ let(:solr_doc) do
+ SolrDocument.new(has_model_ssim: 'AdminSet',
+ id: 123,
+ title_tesim: ['Example Admin Set'],
+ creator_ssim: ['jdoe@example.com'])
+ end
let(:admin_sets) { [solr_doc] }
let(:presenter_class) { Hyrax::AdminSetPresenter }
let(:presenter) { instance_double(presenter_class, total_items: 99) }
let(:ability) { instance_double("Ability") }