|
|
|
@ -57,10 +57,14 @@ Given /^the [Uu]ser "([^\"]*)" has (\d+) [iI]ssue(?:s)? with(?: the following)?: |
|
|
|
|
u = User.find_by_login user |
|
|
|
|
raise "This user must be member of a project to have issues" unless u.projects.last |
|
|
|
|
as_admin count do |
|
|
|
|
i = FactoryGirl.create(:work_package, project: u.projects.last) |
|
|
|
|
i.author = u |
|
|
|
|
i.assigned_to = u |
|
|
|
|
i = FactoryGirl.create(:work_package, |
|
|
|
|
project: u.projects.last, |
|
|
|
|
author: u, |
|
|
|
|
assigned_to: u, |
|
|
|
|
status: Status.default || FactoryGirl.create(:status)) |
|
|
|
|
|
|
|
|
|
i.type = Type.find_by_name(table.rows_hash.delete("type")) if table.rows_hash["type"] |
|
|
|
|
|
|
|
|
|
send_table_to_object(i, table, {}, method(:add_custom_value_to_issue)) |
|
|
|
|
i.save! |
|
|
|
|
end |
|
|
|
|