Render correct template in spec
This commit is contained in:
parent
e8e833f9bd
commit
91716454c3
|
@ -7,7 +7,7 @@ describe CommentsController, 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("comment/index")
|
expect(response).to have_rendered :index
|
||||||
expect(response).to have_http_status(200)
|
expect(response).to have_http_status(200)
|
||||||
expect(assigns(:comments)).to eq(comments)
|
expect(assigns(:comments)).to eq(comments)
|
||||||
expect(assigns(:comments)).to_not include(unrelated_comment)
|
expect(assigns(:comments)).to_not include(unrelated_comment)
|
||||||
|
|
Loading…
Reference in New Issue