From d1aa01b9fa36af6dc2918b679164a239f68af137 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Fri, 15 Sep 2017 15:34:47 +0200 Subject: [PATCH] fixes flaky spec Using correct resource in path --- spec/features/votes_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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