frankfurter/lib/tasks/test.rake
Hakan Ensari cfbb4ac4ac Repack app
I'm moving my company's server to a private location now that I have sold the domain. While prepping for this, I've done some cleanup and also threw in changes I had lingering on my hard drive.

- Run a single database query instead of two
- Fold the gem into the app and use Ox instead of REXML
- Simplify error handling logic
- Relax throttling
2018-03-08 23:51:36 +00:00

19 lines
326 B
Ruby

# frozen_string_literal: true
require 'rake/testtask'
begin
require 'rubocop/rake_task'
rescue LoadError
return
end
Rake::TestTask.new(test: :environment) do |t|
t.libs.push('lib')
t.test_files = FileList['spec/*_spec.rb']
t.ruby_opts += ['-W0']
end
RuboCop::RakeTask.new
task default: %w[db:setup test rubocop]