From 91716454c3bbb5d3155539b045cc35a57b80a21e Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 29 Oct 2023 21:34:13 +0100 Subject: [PATCH] Render correct template in spec --- spec/controllers/comments_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/comments_controller_spec.rb b/spec/controllers/comments_controller_spec.rb index 82145dcc..209c1886 100644 --- a/spec/controllers/comments_controller_spec.rb +++ b/spec/controllers/comments_controller_spec.rb @@ -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)