diff --git a/Rakefile b/Rakefile index 074bc50..9d9887c 100755 --- a/Rakefile +++ b/Rakefile @@ -4,6 +4,7 @@ begin rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end + begin require 'rdoc/task' rescue LoadError @@ -20,9 +21,6 @@ RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_files.include('lib/**/*.rb') end -APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__) -load 'rails/tasks/engine.rake' - Bundler::GemHelper.install_tasks require 'rake/testtask' @@ -34,4 +32,12 @@ Rake::TestTask.new(:test) do |t| t.verbose = false end +begin + require 'rubocop/rake_task' +rescue LoadError + # Test group disabled +else + RuboCop::RakeTask.new +end + task default: :test