From 83c96b1f326c97d03e24550188aed8f821b107f2 Mon Sep 17 00:00:00 2001 From: kikito Date: Thu, 13 Aug 2015 12:14:04 +0200 Subject: [PATCH] Fixes tags spec --- spec/features/tags_spec.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/spec/features/tags_spec.rb b/spec/features/tags_spec.rb index 7c0b3209a..c496c471e 100644 --- a/spec/features/tags_spec.rb +++ b/spec/features/tags_spec.rb @@ -51,11 +51,9 @@ feature 'Tags' do visit debates_path - within "#tag-cloud" do - expect(page).to have_css(".s", text: "Medio Ambiente(1)") - expect(page).to have_css(".m", text: "Corrupción(5)") - expect(page).to have_css(".l", text: "Economía(10)") - end + within(:css, "#tag-cloud .s") { expect(page).to have_content('Medio Ambiente 1') } + within(:css, "#tag-cloud .m") { expect(page).to have_content('Corrupción 5') } + within(:css, "#tag-cloud .l") { expect(page).to have_content('Economía 10') } end scenario 'Create' do