Rakefile in rmagick-2.14.0 vs Rakefile in rmagick-2.15.0
- old
+ new
@@ -19,11 +19,11 @@
def base
File.expand_path('..', __FILE__)
end
end
-desc 'abort when repo nto clean or has uncommited code'
+desc 'abort when repo is not clean or has uncommited code'
task :assert_clean_repo do
sh('git diff --exit-code')
abort 'Git repo not clean' unless $CHILD_STATUS.success?
sh('git diff-index --quiet --cached HEAD')
abort 'Git repo not commited' unless $CHILD_STATUS.success?
@@ -163,23 +163,26 @@
end
end
require 'rake/extensiontask'
require 'rake/testtask'
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new(:spec)
Rake::ExtensionTask.new('RMagick2') do |ext|
ext.ext_dir = 'ext/RMagick'
end
Rake::TestTask.new(:test) do |t|
t.libs << 'test'
end
task :test => :compile
+task :spec => :compile
if ENV['STYLE_CHECKS']
require 'rubocop/rake_task'
RuboCop::RakeTask.new
- task :default => [:test, :rubocop]
+ task :default => [:spec, :test, :rubocop]
else
- task :default => :test
+ task :default => [:spec, :test]
end