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)