diff --git a/spec/features/votes_spec.rb b/spec/features/votes_spec.rb index 73a255415..093599368 100644 --- a/spec/features/votes_spec.rb +++ b/spec/features/votes_spec.rb @@ -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