parent
b1ea0b3c01
commit
5a90d044f7
4 changed files with 28 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue