Rakefile in acts_as_textcaptcha-4.6.0 vs Rakefile in acts_as_textcaptcha-4.7.0
- old
+ new
@@ -1,11 +1,10 @@
# frozen_string_literal: true
require "bundler/gem_tasks"
require "rake/testtask"
require "rdoc/task"
-require "rubocop/rake_task"
# generate docs
RDoc::Task.new do |rd|
rd.main = "README.md"
rd.title = "ActsAsTextcaptcha"
@@ -19,21 +18,6 @@
t.libs << "test"
t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
end
-# run lint
-RuboCop::RakeTask.new(:rubocop) do |t|
- t.options = ["--display-cop-names"]
-end
-
-# run tests with code coverage (default)
-namespace :test do
- desc "Run all tests and features and generate a code coverage report"
- task :coverage do
- ENV["COVERAGE"] = "true"
- Rake::Task["test"].execute
- Rake::Task["rubocop"].execute
- end
-end
-
-task default: [:rubocop, "test:coverage"]
+task default: ["test"]