diff --git a/spec/views/hyrax/admin/admin_sets/_show_document_list.html.erb_spec.rb b/spec/views/hyrax/admin/admin_sets/_show_document_list.html.erb_spec.rb index a29caf583d..6883d26475 100644 --- a/spec/views/hyrax/admin/admin_sets/_show_document_list.html.erb_spec.rb +++ b/spec/views/hyrax/admin/admin_sets/_show_document_list.html.erb_spec.rb @@ -8,7 +8,7 @@ end it "renders rows of works" do - render('hyrax/admin/admin_sets/show_document_list.html.erb', documents: documents) + render('hyrax/admin/admin_sets/show_document_list', documents: documents) expect(rendered).to have_css('tbody', text: documents.join) end end diff --git a/spec/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb_spec.rb b/spec/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb_spec.rb index 92a2ad22db..b18dc40c56 100644 --- a/spec/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb_spec.rb +++ b/spec/views/hyrax/admin/admin_sets/_show_document_list_row.html.erb_spec.rb @@ -22,7 +22,7 @@ end it "renders works" do - render 'hyrax/admin/admin_sets/show_document_list_row.html.erb', show_document_list_row: work + render 'hyrax/admin/admin_sets/show_document_list_row', show_document_list_row: work expect(rendered).to have_content 'One Hundred Years of Solitude' expect(rendered).to have_content 'deposited' end diff --git a/spec/views/hyrax/base/_member.html.erb_spec.rb b/spec/views/hyrax/base/_member.html.erb_spec.rb index 13a2325929..b2f38fb057 100644 --- a/spec/views/hyrax/base/_member.html.erb_spec.rb +++ b/spec/views/hyrax/base/_member.html.erb_spec.rb @@ -31,7 +31,7 @@ allow(view).to receive(:contextual_path).with(anything, anything) do |x, y| Hyrax::ContextualPath.new(x, y).show end - render 'hyrax/base/member.html.erb', member: presenter + render 'hyrax/base/member', member: presenter end it 'checks the :download ability' do diff --git a/spec/views/hyrax/batch_select/_add_button.html.erb_spec.rb b/spec/views/hyrax/batch_select/_add_button.html.erb_spec.rb index b382af7f02..c9ab0a73b3 100644 --- a/spec/views/hyrax/batch_select/_add_button.html.erb_spec.rb +++ b/spec/views/hyrax/batch_select/_add_button.html.erb_spec.rb @@ -3,7 +3,7 @@ RSpec.describe 'hyrax/batch_select/_add_button.html.erb', type: :view do let(:document) { double(id: 123) } before do - render 'hyrax/batch_select/add_button.html.erb', document: document + render 'hyrax/batch_select/add_button', document: document end it 'renders a checkbox named "batch_document_ids[]"' do diff --git a/spec/views/hyrax/collections/_show_document_list.html.erb_spec.rb b/spec/views/hyrax/collections/_show_document_list.html.erb_spec.rb index c158b7290f..6838893940 100644 --- a/spec/views/hyrax/collections/_show_document_list.html.erb_spec.rb +++ b/spec/views/hyrax/collections/_show_document_list.html.erb_spec.rb @@ -8,7 +8,7 @@ context 'when not logged in' do it "renders the documents without an Action section" do allow(view).to receive(:current_user).and_return(nil) - render('hyrax/collections/show_document_list.html.erb', documents: documents) + render('hyrax/collections/show_document_list', documents: documents) expect(rendered).to have_css('tbody', text: documents.join) expect(rendered).not_to have_css('th', text: 'Action') end @@ -17,7 +17,7 @@ context 'when logged in' do it "renders the documents without an Action section" do allow(view).to receive(:current_user).and_return(true) - render('hyrax/collections/show_document_list.html.erb', documents: documents) + render('hyrax/collections/show_document_list', documents: documents) expect(rendered).to have_css('tbody', text: documents.join) expect(rendered).not_to have_css('th', text: 'Action') end diff --git a/spec/views/hyrax/collections/_show_document_list_row.html.erb_spec.rb b/spec/views/hyrax/collections/_show_document_list_row.html.erb_spec.rb index add7a3db95..e26fec01a4 100644 --- a/spec/views/hyrax/collections/_show_document_list_row.html.erb_spec.rb +++ b/spec/views/hyrax/collections/_show_document_list_row.html.erb_spec.rb @@ -26,12 +26,12 @@ end it "renders collections links" do - render('hyrax/collections/show_document_list_row.html.erb', document: solr_doc) + render('hyrax/collections/show_document_list_row', document: solr_doc) expect(rendered).not_to have_content 'My awesome collection' end it "renders works" do - render('hyrax/collections/show_document_list_row.html.erb', document: solr_doc) + render('hyrax/collections/show_document_list_row', document: solr_doc) expect(rendered).to have_content 'One Hundred Years of Solitude' expect(rendered).not_to have_content('Edit Access:') end diff --git a/spec/views/hyrax/collections/_show_parent_collections.html.erb_spec.rb b/spec/views/hyrax/collections/_show_parent_collections.html.erb_spec.rb index 6543a7d729..1f7dc0fc0c 100644 --- a/spec/views/hyrax/collections/_show_parent_collections.html.erb_spec.rb +++ b/spec/views/hyrax/collections/_show_parent_collections.html.erb_spec.rb @@ -8,7 +8,7 @@ 'date_created_tesim' => '2000-01-01' } end - let(:subject) { render('show_parent_collections.html.erb', presenter: presenter) } + let(:subject) { render('show_parent_collections', presenter: presenter) } let(:ability) { double } let(:solr_document) { SolrDocument.new(collection_doc) } let(:presenter) { Hyrax::CollectionPresenter.new(solr_document, ability) } diff --git a/spec/views/hyrax/collections/_subcollection_list.html.erb_spec.rb b/spec/views/hyrax/collections/_subcollection_list.html.erb_spec.rb index 56bade728d..2d66321bcb 100644 --- a/spec/views/hyrax/collections/_subcollection_list.html.erb_spec.rb +++ b/spec/views/hyrax/collections/_subcollection_list.html.erb_spec.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true RSpec.describe 'hyrax/collections/_subcollection_list.html.erb', type: :view do - let(:subject) { render('subcollection_list.html.erb', collection: subcollection) } + let(:subject) { render('subcollection_list', collection: subcollection) } let(:collection) { stub_model(Collection, id: '123') } context 'when subcollection list is empty' do @@ -11,7 +11,7 @@ end it "posts a warning message" do - render('subcollection_list.html.erb', collection: subcollection) + render('subcollection_list', collection: subcollection) expect(rendered).to have_text("There are no visible subcollections.") end end diff --git a/spec/views/hyrax/dashboard/collections/_list_collections.html.erb_spec.rb b/spec/views/hyrax/dashboard/collections/_list_collections.html.erb_spec.rb index ffe0cb227a..7ac1926aa3 100644 --- a/spec/views/hyrax/dashboard/collections/_list_collections.html.erb_spec.rb +++ b/spec/views/hyrax/dashboard/collections/_list_collections.html.erb_spec.rb @@ -33,7 +33,7 @@ before do allow(ability).to receive(:admin?).and_return(false) allow(presenter).to receive(:managed_access).and_return('Manage Access') - render('list_collections.html.erb', collection_presenter: presenter) + render('list_collections', collection_presenter: presenter) end # NOTE: Real labels are Manage, Deposit, or View, but UI shows whatever label gets returned, @@ -47,7 +47,7 @@ before do allow(ability).to receive(:admin?).and_return(true) allow(presenter).to receive(:managed_access).and_return('Manage') - render('list_collections.html.erb', collection_presenter: presenter) + render('list_collections', collection_presenter: presenter) end it "doesn't show access" do diff --git a/spec/views/hyrax/dashboard/collections/_show_document_list.html.erb_spec.rb b/spec/views/hyrax/dashboard/collections/_show_document_list.html.erb_spec.rb index 4be6da630d..e27eddf312 100644 --- a/spec/views/hyrax/dashboard/collections/_show_document_list.html.erb_spec.rb +++ b/spec/views/hyrax/dashboard/collections/_show_document_list.html.erb_spec.rb @@ -8,7 +8,7 @@ context 'when not logged in' do it "renders the documents without an Action section" do allow(view).to receive(:current_user).and_return(nil) - render('show_document_list.html.erb', documents: documents) + render('show_document_list', documents: documents) expect(rendered).to have_css('tbody', text: documents.join) expect(rendered).not_to have_css('th', text: 'Action') end @@ -17,7 +17,7 @@ context 'when logged in' do it "renders the documents with an Action section" do allow(view).to receive(:current_user).and_return(true) - render('show_document_list.html.erb', documents: documents) + render('show_document_list', documents: documents) expect(rendered).to have_css('tbody', text: documents.join) expect(rendered).to have_css('th', text: 'Action') end diff --git a/spec/views/hyrax/dashboard/collections/_show_parent_collection_row.html.erb_spec.rb b/spec/views/hyrax/dashboard/collections/_show_parent_collection_row.html.erb_spec.rb index b2f3868625..394b5fe315 100644 --- a/spec/views/hyrax/dashboard/collections/_show_parent_collection_row.html.erb_spec.rb +++ b/spec/views/hyrax/dashboard/collections/_show_parent_collection_row.html.erb_spec.rb @@ -8,7 +8,7 @@ 'date_created_tesim' => '2000-01-01' } end let(:document) { SolrDocument.new(parent_collection_doc) } - let(:subject) { render('show_parent_collection_row.html.erb', id: child_collection.id, document: document) } + let(:subject) { render('show_parent_collection_row', id: child_collection.id, document: document) } context 'when user cannot edit the child collection' do before do diff --git a/spec/views/hyrax/dashboard/collections/_show_parent_collections.html.erb_spec.rb b/spec/views/hyrax/dashboard/collections/_show_parent_collections.html.erb_spec.rb index 457687e3c0..229804df39 100644 --- a/spec/views/hyrax/dashboard/collections/_show_parent_collections.html.erb_spec.rb +++ b/spec/views/hyrax/dashboard/collections/_show_parent_collections.html.erb_spec.rb @@ -8,7 +8,7 @@ 'date_created_tesim' => '2000-01-01' } end - let(:subject) { render('show_parent_collections.html.erb', presenter: presenter) } + let(:subject) { render('show_parent_collections', presenter: presenter) } let(:ability) { double } let(:solr_document) { SolrDocument.new(collection_doc) } let(:presenter) { Hyrax::CollectionPresenter.new(solr_document, ability) } diff --git a/spec/views/hyrax/dashboard/collections/_subcollection_list.html.erb_spec.rb b/spec/views/hyrax/dashboard/collections/_subcollection_list.html.erb_spec.rb index 43ee414629..1b44edc7f4 100644 --- a/spec/views/hyrax/dashboard/collections/_subcollection_list.html.erb_spec.rb +++ b/spec/views/hyrax/dashboard/collections/_subcollection_list.html.erb_spec.rb @@ -3,7 +3,7 @@ let(:user) { create :user } let(:ability) { instance_double("Ability") } let(:collection) { stub_model(Collection, id: '123') } - let(:subject) { render('subcollection_list.html.erb', id: collection.id, collection: subcollection) } + let(:subject) { render('subcollection_list', id: collection.id, collection: subcollection) } before do allow(view).to receive(:id).and_return(collection.id) @@ -19,7 +19,7 @@ end it "posts a warning message" do - render('subcollection_list.html.erb', collection: subcollection) + render('subcollection_list', collection: subcollection) expect(rendered).to have_text("There are no visible subcollections.") end end diff --git a/spec/views/hyrax/file_sets/_single_use_links.html.erb_spec.rb b/spec/views/hyrax/file_sets/_single_use_links.html.erb_spec.rb index b43a5ebca4..0e93feccfb 100644 --- a/spec/views/hyrax/file_sets/_single_use_links.html.erb_spec.rb +++ b/spec/views/hyrax/file_sets/_single_use_links.html.erb_spec.rb @@ -8,7 +8,7 @@ context "with no single-use links" do before do allow(presenter).to receive(:single_use_links).and_return([]) - render 'hyrax/file_sets/single_use_links.html.erb', presenter: presenter + render 'hyrax/file_sets/single_use_links', presenter: presenter end it "renders a table with no links" do expect(rendered).to include("