Permalink
Browse files

Removing lorem ipsum functionality

  • Loading branch information...
1 parent 0695443 commit fc4ab660754621caa5531ca2e9a00ddc2d454143 @brandur committed Nov 11, 2012
Showing with 0 additions and 23 deletions.
  1. +0 −22 Rakefile
  2. +0 −1 lib/hekla.rb
View
@@ -8,25 +8,3 @@ Rake::TestTask.new do |t|
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
end
-
-task :environment do
- require_relative "./lib/hekla"
- DB = Sequel.connect(Hekla::Config.database_url)
-end
-
-task :lorem => :environment do
- create_lorem_ipsum_article title: "Lorem ipsum dolor sit amet", slug: "lorem"
- create_lorem_ipsum_article title: "Consectetur adipisicing elit", slug: "consectetur"
- create_lorem_ipsum_article title: "Ea maxime temporibus itaque tempora", slug: "ea"
- create_lorem_ipsum_article title: "Iure saepe modi mollitia nostrum", slug: "iure"
- create_lorem_ipsum_article title: "Incididunt deleniti et molestiae exercitation ", slug: "incididunt"
-end
-
-def create_lorem_ipsum_article(attributes = {})
- content = Hekla::LoremIpsum.run
- attributes =
- { summary: content[0..160],
- content: content,
- published_at: Time.now }.merge!(attributes)
- Article.create(attributes)
-end
View
@@ -2,7 +2,6 @@
require_relative "hekla/config"
require_relative "hekla/helpers"
-require_relative "hekla/lorem_ipsum"
require_relative "hekla/models/article"

0 comments on commit fc4ab66

Please sign in to comment.