Fixed potential test failure.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9026 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-02-28 05:29:36 +00:00
parent c7e81dfa9b
commit 586661caad
1 changed files with 2 additions and 2 deletions

View File

@ -1344,7 +1344,7 @@ class IssuesControllerTest < ActionController::TestCase
def test_post_new_with_group_assignment
group = Group.find(11)
project = Project.find(1)
project.members << Member.new(:principal => group, :roles => [Role.first])
project.members << Member.new(:principal => group, :roles => [Role.givable.first])
with_settings :issue_group_assignment => '1' do
@request.session[:user_id] = 2
@ -2694,7 +2694,7 @@ class IssuesControllerTest < ActionController::TestCase
def test_bulk_update_with_group_assignee
group = Group.find(11)
project = Project.find(1)
project.members << Member.new(:principal => group, :roles => [Role.first])
project.members << Member.new(:principal => group, :roles => [Role.givable.first])
@request.session[:user_id] = 2
# update issues assignee