From 5a3dc42dea3f5d4b05eb88632f09cf707c97e70f Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 27 Jan 2016 14:18:40 +0100 Subject: [PATCH] removes tag count --- app/views/shared/_tag_cloud.html.erb | 1 - spec/features/tags_spec.rb | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/shared/_tag_cloud.html.erb b/app/views/shared/_tag_cloud.html.erb index 1091ef6da..34e90c714 100644 --- a/app/views/shared/_tag_cloud.html.erb +++ b/app/views/shared/_tag_cloud.html.erb @@ -6,7 +6,6 @@ <% tag_cloud @tag_cloud, %w[s m l] do |tag, css_class| %> <%= link_to taggable_path(taggable, tag.name), class: css_class do %> <%= tag.name %> - (<%= tag.send(taggable_counter_field(taggable)) %>) <% end %> <% end %> diff --git a/spec/features/tags_spec.rb b/spec/features/tags_spec.rb index 2bd8db060..a6ecc739f 100644 --- a/spec/features/tags_spec.rb +++ b/spec/features/tags_spec.rb @@ -63,10 +63,10 @@ feature 'Tags' do visit debates_path within(:css, "#tag-cloud") do - expect(page.find("a:eq(1)")).to have_content("Economía (10)") - expect(page.find("a:eq(2)")).to have_content("Corrupción (5)") - expect(page.find("a:eq(3)")).to have_content("Educación (5)") - expect(page.find("a:eq(4)")).to have_content("Medio Ambiente (1)") + expect(page.find("a:eq(1)")).to have_content("Economía") + expect(page.find("a:eq(2)")).to have_content("Corrupción") + expect(page.find("a:eq(3)")).to have_content("Educación") + expect(page.find("a:eq(4)")).to have_content("Medio Ambiente") end end