Remove duplicated render_views
for SubmissionsController spec
This commit is contained in:

committed by
Sebastian Serth

parent
8b37242a58
commit
347af23f98
@ -186,10 +186,6 @@ RSpec.describe SubmissionsController do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe 'GET #show.json' do
|
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 }
|
before { get :show, params: {id: submission.id}, format: :json }
|
||||||
|
|
||||||
expect_assigns(submission: :submission)
|
expect_assigns(submission: :submission)
|
||||||
|
Reference in New Issue
Block a user