mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-06 21:00:20 +01:00
16 lines
505 B
Ruby
16 lines
505 B
Ruby
class ProjectsScenario < Scenario::Base
|
|
def load
|
|
['Build a working time machin',
|
|
'Make more money than Billy Gates',
|
|
'Evict dinosaurs from the garden',
|
|
'Attend RailsConf'].each_with_index do |project, index|
|
|
create_record :project, project.split.first.downcase.to_sym,
|
|
:name => project,
|
|
:description => '',
|
|
:position => index + 1,
|
|
:state => 'active',
|
|
:created_at => Time.now,
|
|
:updated_at => Time.now
|
|
end
|
|
end
|
|
end
|