Rakefile in magic_grid-0.9.3.1 vs Rakefile in magic_grid-0.10.0
- old
+ new
@@ -3,19 +3,23 @@
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
-require 'yard'
+begin
+ require 'yard'
+ YARD::Rake::YardocTask.new
+rescue LoadError
+ puts "Skipping YARD tasks"
+end
-YARD::Rake::YardocTask.new
Bundler::GemHelper.install_tasks
require 'rake/testtask'
-Rake::TestTask.new(:tests) do |t|
+Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
@@ -25,7 +29,9 @@
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
t.verbose = false
end
-task :test => [:spec, :tests]
-task :default => :test
+desc "Run TestUnit and RSpec tests"
+task :tests => [:spec, :test]
+
+task :default => :tests