Remove duplicated render_views for SubmissionsController spec

This commit is contained in:
Sebastian Serth
2023-11-23 10:50:17 +01:00
committed by Sebastian Serth
parent 8b37242a58
commit 347af23f98

View File

@ -186,10 +186,6 @@ RSpec.describe SubmissionsController do
end
describe 'GET #show.json' do
# Render views requested in controller tests in order to get json responses
# https://github.com/rails/jbuilder/issues/32
render_views
before { get :show, params: {id: submission.id}, format: :json }
expect_assigns(submission: :submission)