Render correct template in spec

This commit is contained in:
Andreas Nedbal 2023-10-29 21:34:13 +01:00
parent e8e833f9bd
commit 91716454c3
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ describe CommentsController, type: :controller do
shared_examples_for "succeeds" do
it "returns the correct response" do
subject
expect(response).to have_rendered("comment/index")
expect(response).to have_rendered :index
expect(response).to have_http_status(200)
expect(assigns(:comments)).to eq(comments)
expect(assigns(:comments)).to_not include(unrelated_comment)