diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-28 05:29:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-28 05:29:36 +0000 |
commit | 586661caad052a8ce7d15e58919e81f370bbb142 (patch) | |
tree | 4abfa26cf7761b4d69faa655605fb0f171874cc2 | |
parent | c7e81dfa9b35e23e5740f53e26cbcd6feb716138 (diff) | |
download | redmine-586661caad052a8ce7d15e58919e81f370bbb142.tar.gz redmine-586661caad052a8ce7d15e58919e81f370bbb142.zip |
Fixed potential test failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9026 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/issues_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 6c84c3c8e..f85d157ce 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -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 |