From e34ae1a80502cf0ed8304fb52c7322ef05d9f5a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Fri, 7 Aug 2015 09:21:29 +0200 Subject: [PATCH] adds tests for :js vote specs --- spec/features/votes_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/features/votes_spec.rb b/spec/features/votes_spec.rb index f4b61d3e0..ecb8a8b8f 100644 --- a/spec/features/votes_spec.rb +++ b/spec/features/votes_spec.rb @@ -102,10 +102,12 @@ feature 'Votes' do within('.in-favor') do expect(page).to have_content "100%" + expect(page).to have_css("a.voted") end within('.against') do expect(page).to have_content "0%" + expect(page).to have_css("a.no-voted") end expect(page).to have_content "1 vote" @@ -119,10 +121,12 @@ feature 'Votes' do within('.in-favor') do expect(page).to have_content "100%" + expect(page).to have_css("a.voted") end within('.against') do expect(page).to have_content "0%" + expect(page).to have_css("a.no-voted") end expect(page).to have_content "1 vote" @@ -141,10 +145,12 @@ feature 'Votes' do within('.in-favor') do expect(page).to have_content "100%" + expect(page).to have_css("a.voted") end within('.against') do expect(page).to have_content "0%" + expect(page).to have_css("a.no-voted") end expect(page).to have_content "1 vote" @@ -158,10 +164,12 @@ feature 'Votes' do within('.in-favor') do expect(page).to have_content "0%" + expect(page).to have_css("a.no-voted") end within('.against') do expect(page).to have_content "100%" + expect(page).to have_css("a.voted") end expect(page).to have_content "1 vote"