Allow filtering by issues with no assigned... assignee

Continues #1222
This commit is contained in:
Robert Speicher 2012-08-13 20:49:18 -04:00
parent b1ea0b3c01
commit 5a90d044f7
4 changed files with 28 additions and 2 deletions

View file

@ -102,6 +102,7 @@ describe "Issues" do
@issue = Issue.first
@issue.milestone = Factory(:milestone, project: project)
@issue.assignee = nil
@issue.save
end
@ -120,5 +121,21 @@ describe "Issues" do
page.should_not have_content 'barbaz'
page.should_not have_content 'gitlab'
end
it "should allow filtering by issues with no specified assignee" do
visit project_issues_path(project, assignee_id: '0')
page.should have_content 'foobar'
page.should_not have_content 'barbaz'
page.should_not have_content 'gitlab'
end
it "should allow filtering by a specified assignee" do
visit project_issues_path(project, assignee_id: @user.id)
page.should_not have_content 'foobar'
page.should have_content 'barbaz'
page.should have_content 'gitlab'
end
end
end