bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Add your own tasks in files placed in lib/tasks ending in .rake,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesrequire File.expand_path('../lib/rake/task.rb', __FILE__)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesrequire File.expand_path('../config/application', __FILE__)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Prevent Rspec to print file list unless enforced by the environment.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesif defined?(RSpec) && ENV['SPEC_VERBOSE'] != 'true'
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Remove load_schema/load_structure in tests, as db:migrate:clean
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# will take care of everything.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRake::Task['db:test:clone'].prerequisites.delete('db:test:load_schema')
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRake::Task['db:test:clone'].prerequisites << 'db:test:purge'
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRake::Task['db:test:clone_structure'].prerequisites.delete('db:test:load_structure')
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRake::Task['db:test:clone_structure'].prerequisites << 'db:test:purge'
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Run all test suites per default
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRake::Task['default'].prerequisites.delete('cucumber')
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRake::Task['default'].enhance([:'test:abort_if_elasticsearch_is_not_running'])
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRake::Task['default'].enhance([:'test:enable_coverage'])
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesRake::Task['default'].enhance([:'test:freshen_fixtures'])