tracks/spec/scenarios/projects_scenario.rb

17 lines
505 B
Ruby
Raw Normal View History

2008-06-23 21:34:57 +02:00
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