Rakefile in mojo_magick-0.5.6 vs Rakefile in mojo_magick-0.5.7
- old
+ new
@@ -1,20 +1,13 @@
require 'rubygems'
+require 'rake/testtask'
-task 'default' => :test
-
-desc "Default: run tests"
-task :test do
- require 'simplecov'
- SimpleCov.start
- require 'rake/runtest'
- files = Dir.glob(File.join(File.dirname(__FILE__), 'test/*_test.rb'))
- files.each do |f|
- Rake.run_tests f
- end
+task default: 'test'
+Rake::TestTask.new do |task|
+ task.pattern = 'test/*_test.rb'
end
-desc "Build gem"
+desc 'Build gem'
task :build do
`rm mojo_magick-*.gem`
- puts `gem build mojo_magick.gemspec`
+ puts `gem build mojo_magick.gemspec`
end