Permalink
Browse files

close #95, added some programs to seeds

  • Loading branch information...
1 parent e8acec3 commit 993dcc59d741bd4adae90385a5fc6c74bde19d4c @coreypurcell coreypurcell committed Feb 4, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 db/seeds.rb
View
@@ -73,3 +73,23 @@
question.save!
questions[i] = question
end
+
+program_code = "
+Turtle.draw do
+ background maroon
+ pencolor honeydew
+ 450.times do
+ forward 100
+ turnright 70
+ end
+end
+"
+
+5.times do |i|
+ program = Program.new(:author_username => users[i].username,
+ :title => Faker::Lorem.sentence,
+ :description => Faker::Lorem.sentences.join(" "),
+ :source_code => program_code)
+ program.save!
+end
+

0 comments on commit 993dcc5

Please sign in to comment.