fixes flaky spec

Using correct resource in path
This commit is contained in:
rgarcia
2017-09-15 15:34:47 +02:00
committed by Bertocq
parent c128a0f21d
commit d1aa01b9fa

View File

@@ -303,7 +303,7 @@ feature 'Votes' do
debate = create(:debate) debate = create(:debate)
comment = create(:comment, commentable: debate) comment = create(:comment, commentable: debate)
visit comment_path(debate) visit comment_path(comment)
within("#comment_#{comment.id}") do within("#comment_#{comment.id}") do
find("div.votes").hover find("div.votes").hover
expect_message_you_need_to_sign_in_to_vote_comments expect_message_you_need_to_sign_in_to_vote_comments