Permalink
Browse files

Tidied up Rakefile.

  • Loading branch information...
1 parent 4fb66f7 commit 4f0383202234ec4070ea280beb251c2cdefae314 Stuart Ellis committed Nov 2, 2010
Showing with 5 additions and 8 deletions.
  1. +5 −8 Rakefile
View
@@ -4,18 +4,21 @@ Bundler::GemHelper.install_tasks
require 'rake'
require 'rake/clean'
require 'rake/rdoctask'
+require 'cucumber/rake/task'
require 'spec/rake/spectask'
CLEAN.include('pkg')
CLOBBER.include('tmp')
-desc "Build RDoc documentation"
+Cucumber::Rake::Task.new do |t|
+ t.cucumber_opts = ['--format', 'pretty']
+end
+
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
end
-desc "Run specs"
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', 'spec/spec.opts']
end
@@ -24,9 +27,3 @@ desc "Start a console"
task :console do
exec 'irb -I lib -r proof'
end
-
-require 'cucumber/rake/task'
-
-Cucumber::Rake::Task.new do |t|
- t.cucumber_opts = %w{--format pretty}
-end

0 comments on commit 4f03832

Please sign in to comment.