|
1 | 1 | #this file sets up all of our rake tasks |
2 | 2 |
|
3 | 3 | require 'rubygems' |
| 4 | +require 'bundler' |
| 5 | +Bundler.setup |
| 6 | + |
4 | 7 | require 'spec/rake/spectask' |
5 | 8 | require 'cucumber/rake/task' |
6 | 9 |
|
@@ -57,32 +60,6 @@ namespace :db do |
57 | 60 | :password_confirmation => "password", |
58 | 61 | :about => "I'm just a regular person!" |
59 | 62 | }) |
60 | | - #make an initial Post, with a comment |
61 | | - require 'models/post' |
62 | | - require 'models/comment' |
63 | | - post = Post.create({ |
64 | | - :title => "Welcome to the Hackety Site!", |
65 | | - :body => "This is an intial post, so that you can see how everything looks. Here's a [link](http://github.com/hacketyhack/hackety-hack.com) to the source code on GitHub. Now I'm just going to do the usual stuff: |
66 | | -Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
67 | | -
|
68 | | -And a blockquote: |
69 | | -
|
70 | | -> Lorem ipsum dolor sit amet, consectetur adipiscicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
71 | | -
|
72 | | -Esse insolens mnesarchum eam id, nec ad detracto disputando. Nec malorum postulant disputationi ad. Pri menandri inimicus ut. Pro velit affert mediocritatem at, eu nec voluptua inciderint, ne mei diam praesent. No eum tamquam appetere, ex eos habemus evertitur consequat, quo et wisi tincidunt consectetuer. Vocent lobortis est cu." |
73 | | - }) |
74 | | - |
75 | | - post.comments << Comment.new({ |
76 | | - :body => "This post is awesome! I've never seen such insightful commentary!", |
77 | | - :author => "somebody", |
78 | | - :author_email => "somebody@example.com" |
79 | | - }) |
80 | | - post.comments << Comment.new({ |
81 | | - :body => "Oh, and I almost forgot! I wanted to say something really long, so that we could see how a long comment looks, but I was in such a hurry to compliment your excellent writing that I could barely contain myself! Luckily, this time I'm much more verbose, and so it should fulfill the objective. Great!", |
82 | | - :author => "somebody", |
83 | | - :author_email => "somebody@example.com" |
84 | | - }) |
85 | | - post.save |
86 | 63 |
|
87 | 64 | #now let's make a discussion on the forum: |
88 | 65 | require 'models/discussion' |
|
0 commit comments