Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…for it
  • Loading branch information...
commit 0f3d3db0cb9084d3f8db46160e7b888ff4f07022 1 parent 36f68a4
@radar radar authored
View
4 app/views/tags/_tag.html.erb
@@ -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>
View
10 spec/integration/searching_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.