Prevents unecessary status validations

pull/782/head
Hagen Schink 11 years ago
parent 4af2df5f44
commit 10a33c4fe3
  1. 10
      features/step_definitions/issue_steps.rb

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

Loading…
Cancel
Save