removes tag count
This commit is contained in:
@@ -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 %>
|
||||
<span class="tag"><%= tag.name %></span>
|
||||
(<%= tag.send(taggable_counter_field(taggable)) %>)
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user