Check proper render result in spec

This commit is contained in:
Andreas Nedbal 2023-10-29 21:38:50 +01:00 committed by Andreas Nedbal
parent ca043d56ef
commit b7808e85c6
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ describe ReactionsController, type: :controller do
shared_examples_for "succeeds" do shared_examples_for "succeeds" do
it "returns the correct response" do it "returns the correct response" do
subject subject
expect(response).to have_rendered("reaction/index") expect(response).to have_rendered :index
expect(response).to have_http_status(200) expect(response).to have_http_status(200)
end end
end end