OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/spec/support/project_helper.rb

9 lines
332 B

class Project
def self.mock!(options = {})
time = Time.now
options = options.reverse_merge({:created_on => time,
:identifier => "#{Project.all.size}project#{time.to_i}"[0..19],
:name => "Project#{Project.all.size}"})
generate! options
end
end