require 'bundler/setup' require 'rubocop/rake_task' require 'rspec/core/rake_task' require 'rom/sql/rake_task' ENV['LOTUS_ENV'] = 'test' RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = '-r ./spec/spec_helper' t.pattern = 'spec/dummy/spec/**/*_spec.rb' end task default: %w(spec) RuboCop::RakeTask.new do |task| task.options << '--display-cop-names' end namespace :db do task :setup do require './spec/dummy/config/environment' Lotus::Application.preload! Lotus::Container.new end end