[#5482] Add issue grouping by contract

This commit is contained in:
Eric Davis
2011-02-22 09:41:15 -08:00
parent d2aa87fdd2
commit a0b92851a7
3 changed files with 73 additions and 3 deletions

View File

@@ -42,4 +42,28 @@ class IssueFilteringTest < ActionController::IntegrationTest
end
should "allow grouping issues by contract" do
visit_project(@project)
click_link "Issues"
assert_select '#group_by' do
assert_select 'option', "Contract"
end
select "Contract", :from => 'group_by'
# Apply link is behind a JavaScript form
visit "/projects/#{@project.identifier}/issues/?set_filter&group_by=contract_name"
assert_response :success
assert_select "tr.group" do
assert_select "td", :text => /None/
end
assert_select "tr.group" do
assert_select "td", :text => Regexp.new(@contract.name)
end
end
end