fixes flaky spec
Using correct resource in path
This commit is contained in:
@@ -303,7 +303,7 @@ feature 'Votes' do
|
||||
debate = create(:debate)
|
||||
comment = create(:comment, commentable: debate)
|
||||
|
||||
visit comment_path(debate)
|
||||
visit comment_path(comment)
|
||||
within("#comment_#{comment.id}") do
|
||||
find("div.votes").hover
|
||||
expect_message_you_need_to_sign_in_to_vote_comments
|
||||
|
||||
Reference in New Issue
Block a user