]> source.dussan.org Git - redmine.git/commitdiff
Fixed potential test failure.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 28 Feb 2012 05:29:36 +0000 (05:29 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 28 Feb 2012 05:29:36 +0000 (05:29 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9026 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index 6c84c3c8ea11c3e0451ec4c041d0e3ede395bfad..f85d157ce92793242bbcd60246e5410d19d2fcc8 100644 (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