Skip to content

Commit

Permalink
rubocop fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Janell-Huyck committed Nov 27, 2023
1 parent 9a9e055 commit 7f960f1
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion spec/controllers/book_chapters_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion spec/controllers/colleges_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/digital_projects_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/editings_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/errors_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/films_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/journal_articles_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions spec/controllers/musical_scores_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/other_publications_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/pages_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/photographies_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/physical_media_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/plays_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/public_performances_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f960f1

Please sign in to comment.