mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-07 14:23:41 +01:00
Render correct template in spec
This commit is contained in:
parent
e8e833f9bd
commit
91716454c3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue