Merge pull request #984 from pablogfb/tag-fixing

fixes tags links through searches to avoid misspellings
This commit is contained in:
Juanjo Bazán
2016-03-11 12:45:39 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
<% if taggable.tags.any? %>
<span id="tags" class='tags'>
<% taggable.tag_list_with_limit(limit).each do |tag| %>
<%= link_to sanitize(tag.name), send("#{taggable.class.name.underscore.pluralize}_path", tag: tag.name) %>
<%= link_to sanitize(tag.name), send("#{taggable.class.name.underscore.pluralize}_path", search: tag.name) %>
<% end %>
<% if taggable.tags_count_out_of_limit(limit) > 0 %>

View File

@@ -34,7 +34,7 @@ feature 'Tags' do
expect(page).to_not have_content(debate4.title)
end
visit debates_path(tag: 'salud')
visit debates_path(search: 'salud')
within("#debates") do
expect(page).to have_css('.debate', count: 2)