Permalink
Browse files

Users can now click a tag's name to go to a page showing all tickets …

…for it
  • Loading branch information...
1 parent 36f68a4 commit 0f3d3db0cb9084d3f8db46160e7b888ff4f07022 @radar radar committed Jul 9, 2012
Showing with 13 additions and 1 deletion.
  1. +3 −1 app/views/tags/_tag.html.erb
  2. +10 −0 spec/integration/searching_spec.rb
@@ -6,5 +6,7 @@
:remote => true,
:id => "delete-#{tag.name.parameterize}" %>
<% end %>
- <%= tag.name %>
+ <%= link_to tag.name,
+ search_project_tickets_path(@ticket.project,
+ :search => "tag:#{tag.name}") %>
</span>
@@ -48,4 +48,14 @@
page.should_not have_content("Create users")
end
end
+
+ scenario "Clicking a tag goes to search results" do
+ click_link "Create projects"
+ click_link "iteration_1"
+ within("#tickets") do
+ page.should have_content("Create projects")
+ page.should_not have_content("Create users")
+ end
+ end
+
end

0 comments on commit 0f3d3db

Please sign in to comment.