Fix missing rake task

This commit is contained in:
Hakan Ensari 2018-01-08 12:21:19 +00:00
parent 697b941632
commit 4eb8e0ec48

View File

@ -1,9 +1,11 @@
# frozen_string_literal: true # frozen_string_literal: true
return unless defined?(Rubocop)
require 'rake/testtask' require 'rake/testtask'
require 'rubocop/rake_task' begin
require 'rubocop/rake_task'
rescue LoadError
return
end
Rake::TestTask.new(test: :environment) do |t| Rake::TestTask.new(test: :environment) do |t|
t.libs.push('lib') t.libs.push('lib')