frankfurter/lib/tasks/test.rake

19 lines
336 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-06-14 22:16:21 +02:00
2014-03-14 13:12:21 +01:00
require 'rake/testtask'
2018-01-08 13:21:19 +01:00
begin
require 'rubocop/rake_task'
rescue LoadError
return
end
2014-03-14 13:12:21 +01:00
2014-03-14 13:49:16 +01:00
Rake::TestTask.new(test: :environment) do |t|
2014-03-14 13:12:21 +01:00
t.libs.push('lib')
2018-10-10 14:39:13 +02:00
t.test_files = FileList['spec/**/*_spec.rb']
2017-01-03 14:51:07 +01:00
t.ruby_opts += ['-W0']
2014-03-14 13:12:21 +01:00
end
2017-01-03 14:50:54 +01:00
RuboCop::RakeTask.new
2020-04-02 15:38:07 +02:00
task default: %w[db:test:prepare test rubocop]