Rakefile in rubocop-git2-0.1.4 vs Rakefile in rubocop-git2-0.1.5
- old
+ new
@@ -1,16 +1,8 @@
require 'bundler/gem_tasks'
-require 'rake/testtask'
+require 'rspec/core/rake_task'
+require 'rubocop/rake_task'
-task default: %i[test selftest]
+RSpec::Core::RakeTask.new(:spec)
+RuboCop::RakeTask.new
-Rake::TestTask.new(:test) do |t|
- t.libs << 'test'
- t.libs << 'lib'
- t.test_files = FileList['test/**/*_test.rb']
-end
-
-desc 'Run RuboCop::Git over itself'
-task :selftest do
- require_relative 'lib/rubocop/git'
- RuboCop::Git::Runner.new.run(commits: ['v0.0.4'])
-end
+task default: %i[spec rubocop]