Fix link to comments on admin view for debates
This commit is contained in:
committed by
Javi Martín
parent
845f12879a
commit
b9ec40325c
@@ -19,4 +19,14 @@ describe "Admin debates", :admin do
|
||||
expect(page).to have_content(debate.title)
|
||||
expect(page).to have_content(debate.description)
|
||||
end
|
||||
|
||||
scenario "Comments link" do
|
||||
debate = create(:debate)
|
||||
comment = create(:comment, commentable: debate)
|
||||
|
||||
visit admin_debate_path(debate)
|
||||
click_link "1 comment"
|
||||
|
||||
expect(page).to have_content(comment.body)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user