1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
require "rake/testtask"
require "bundler/gem_tasks"
task :default => :test
Rake::TestTask.new do |t|
t.libs << "test"
t.warning = true
end
task :test_isolated do
Dir["test/test*.rb"].each do |fn|
ruby "-Ilib:test", "-w", fn
abort unless $?.success?
end
end
begin
require "rubocop/rake_task"
RuboCop::RakeTask.new(:rubocop) do |task|
task.options = ['--display-cop-names']
end
rescue LoadError
# We are in the production environment, where Rubocop is not required.
end
|