diff --git a/spec/controllers/book_chapters_controller_spec.rb b/spec/controllers/book_chapters_controller_spec.rb index 98ddffd1..359c2e2a 100644 --- a/spec/controllers/book_chapters_controller_spec.rb +++ b/spec/controllers/book_chapters_controller_spec.rb @@ -90,7 +90,7 @@ before do book_chapter end - + it 'destroys the requested book_chapter' do expect do delete :destroy, params: { id: book_chapter.to_param }, session: valid_session diff --git a/spec/controllers/colleges_controller_spec.rb b/spec/controllers/colleges_controller_spec.rb index efae35d1..a3d3af50 100644 --- a/spec/controllers/colleges_controller_spec.rb +++ b/spec/controllers/colleges_controller_spec.rb @@ -107,7 +107,6 @@ end it 'redirects to the college' do - put :update, params: { id: college.to_param, college: valid_attributes }, session: valid_session expect(response).to redirect_to(college) end diff --git a/spec/controllers/digital_projects_controller_spec.rb b/spec/controllers/digital_projects_controller_spec.rb index bcb822b0..6f4da41a 100644 --- a/spec/controllers/digital_projects_controller_spec.rb +++ b/spec/controllers/digital_projects_controller_spec.rb @@ -90,7 +90,7 @@ before do digital_project end - + it 'destroys the requested digital_project' do expect do delete :destroy, params: { id: digital_project.to_param }, session: valid_session diff --git a/spec/controllers/editings_controller_spec.rb b/spec/controllers/editings_controller_spec.rb index e5e5a3f3..b6ce857b 100644 --- a/spec/controllers/editings_controller_spec.rb +++ b/spec/controllers/editings_controller_spec.rb @@ -90,7 +90,7 @@ before do editing end - + it 'destroys the requested editing' do expect do delete :destroy, params: { id: editing.to_param }, session: valid_session diff --git a/spec/controllers/errors_controller_spec.rb b/spec/controllers/errors_controller_spec.rb index 4257270c..540f94d1 100644 --- a/spec/controllers/errors_controller_spec.rb +++ b/spec/controllers/errors_controller_spec.rb @@ -8,7 +8,7 @@ describe 'GET #not_found' do let(:submitter) { FactoryBot.create(:submitter) } let(:valid_session) { { submitter_id: submitter.id } } - + before do get :not_found, session: valid_session end diff --git a/spec/controllers/films_controller_spec.rb b/spec/controllers/films_controller_spec.rb index c87258b5..b3c8c677 100644 --- a/spec/controllers/films_controller_spec.rb +++ b/spec/controllers/films_controller_spec.rb @@ -90,7 +90,7 @@ before do film end - + it 'destroys the requested film' do expect do delete :destroy, params: { id: film.to_param }, session: valid_session diff --git a/spec/controllers/journal_articles_controller_spec.rb b/spec/controllers/journal_articles_controller_spec.rb index 9ab402f5..e87c5569 100644 --- a/spec/controllers/journal_articles_controller_spec.rb +++ b/spec/controllers/journal_articles_controller_spec.rb @@ -90,7 +90,7 @@ before do journal_article end - + it 'destroys the requested journal_article' do expect do delete :destroy, params: { id: journal_article.to_param }, session: valid_session diff --git a/spec/controllers/musical_scores_controller_spec.rb b/spec/controllers/musical_scores_controller_spec.rb index 4b4ce346..07f1eacb 100644 --- a/spec/controllers/musical_scores_controller_spec.rb +++ b/spec/controllers/musical_scores_controller_spec.rb @@ -59,8 +59,6 @@ end describe 'PUT #update' do - - context 'with valid params' do let(:new_attributes) do { 'author_first_name' => %w[Test Person], 'author_last_name' => %w[Case 2], 'college_ids' => %w[6 7], 'uc_department' => 'Test', 'work_title' => 'Test', 'other_title' => 'Test', 'volume' => 'Test', 'issue' => 'Test', 'page_numbers' => 'Test', 'publisher' => 'Test', 'city' => 'Test', 'publication_date' => 'Test', 'url' => 'www.cool.com', 'doi' => 'Test' } diff --git a/spec/controllers/other_publications_controller_spec.rb b/spec/controllers/other_publications_controller_spec.rb index 2471545f..985d16a6 100644 --- a/spec/controllers/other_publications_controller_spec.rb +++ b/spec/controllers/other_publications_controller_spec.rb @@ -90,7 +90,7 @@ before do other_publication end - + it 'destroys the requested other_publication' do expect do delete :destroy, params: { id: other_publication.to_param }, session: valid_session diff --git a/spec/controllers/pages_controller_spec.rb b/spec/controllers/pages_controller_spec.rb index ac6b85f9..8cd24458 100644 --- a/spec/controllers/pages_controller_spec.rb +++ b/spec/controllers/pages_controller_spec.rb @@ -5,7 +5,7 @@ RSpec.describe PagesController, type: :controller do let(:submitter) { FactoryBot.create(:submitter) } let(:valid_session) { { submitter_id: submitter.id } } - + describe 'GET #show' do render_views diff --git a/spec/controllers/photographies_controller_spec.rb b/spec/controllers/photographies_controller_spec.rb index 8e261750..1f8de937 100644 --- a/spec/controllers/photographies_controller_spec.rb +++ b/spec/controllers/photographies_controller_spec.rb @@ -90,7 +90,7 @@ before do photography end - + it 'destroys the requested photography' do expect do delete :destroy, params: { id: photography.to_param }, session: valid_session diff --git a/spec/controllers/physical_media_controller_spec.rb b/spec/controllers/physical_media_controller_spec.rb index c4cef01f..a08306ee 100644 --- a/spec/controllers/physical_media_controller_spec.rb +++ b/spec/controllers/physical_media_controller_spec.rb @@ -90,7 +90,7 @@ before do physical_medium end - + it 'destroys the requested physical_medium' do expect do delete :destroy, params: { id: physical_medium.to_param }, session: valid_session diff --git a/spec/controllers/plays_controller_spec.rb b/spec/controllers/plays_controller_spec.rb index 26fe07c2..dbd4e77a 100644 --- a/spec/controllers/plays_controller_spec.rb +++ b/spec/controllers/plays_controller_spec.rb @@ -90,7 +90,7 @@ before do play end - + it 'destroys the requested play' do expect do delete :destroy, params: { id: play.to_param }, session: valid_session diff --git a/spec/controllers/public_performances_controller_spec.rb b/spec/controllers/public_performances_controller_spec.rb index 130334df..3f99b0cf 100644 --- a/spec/controllers/public_performances_controller_spec.rb +++ b/spec/controllers/public_performances_controller_spec.rb @@ -90,7 +90,7 @@ before do public_performance end - + it 'destroys the requested public_performance' do expect do delete :destroy, params: { id: public_performance.to_param }, session: valid_session