From 49e12041400031c1150a8b8241682e52d7267242 Mon Sep 17 00:00:00 2001 From: kikito Date: Tue, 20 Oct 2015 19:44:46 +0200 Subject: [PATCH] refactors votes_spec --- spec/features/votes_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/features/votes_spec.rb b/spec/features/votes_spec.rb index 07fcd3a34..03aaa7e4c 100644 --- a/spec/features/votes_spec.rb +++ b/spec/features/votes_spec.rb @@ -224,9 +224,7 @@ feature 'Votes' do find('.in-favor a').click expect(page).to have_content "1 support" - find('.in-favor a').click - expect(page).to have_content "1 support" - expect(page).to_not have_content "2 supports" + expect(page).to_not have_selector ".in-favor a" end end