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
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