Rakefile in menu_builder-0.3.0 vs Rakefile in menu_builder-0.3.1

- old
+ new

@@ -1,7 +1,9 @@ require 'rubygems' require 'rake' +require 'rake/testtask' +require 'rake/rdoctask' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "menu_builder" @@ -14,14 +16,14 @@ Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end -require 'rake/testtask' -Rake::TestTask.new(:test) do |test| - test.libs << 'lib' << 'test' - test.pattern = 'test/**/test_*.rb' - test.verbose = true +desc 'Run tests for MenuBuilder.' +Rake::TestTask.new(:test) do |t| + t.libs << 'test' + t.pattern = 'test/**/*_test.rb' + t.verbose = true end begin require 'rcov/rcovtask' Rcov::RcovTask.new do |test|