Fixed step definition for wp create

pull/785/head
Christian Ratz 11 years ago
parent 6db9098571
commit a438b47955
  1. 4
      features/step_definitions/timelines_given_steps.rb

@ -142,6 +142,10 @@ def create_work_packages_from_table table, project
type_attributes[:type] = Type.where(name: type_attributes[:type].to_s).first
end
if type_attributes.has_key? "author"
User.current = type_attributes['author']
end
FactoryGirl.create(:work_package, type_attributes.merge(:project_id => project.id))
end
end

Loading…
Cancel
Save