Rakefile revision 312fc8538476dab17c08b15ecff3399691e955b3
#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require_relative 'lib/rake/task.rb'
require File.expand_path('../config/application', __FILE__)
Ontohub::Application.load_tasks
# Remove load_schema/load_structure in tests, as db:migrate:clean
# will take care of everything.
Rake::Task['db:test:clone'].prerequisites.delete('db:test:load_schema')
Rake::Task['db:test:clone'].prerequisites << 'db:test:purge'
Rake::Task['db:test:clone_structure'].prerequisites.delete('db:test:load_structure')
Rake::Task['db:test:clone_structure'].prerequisites << 'db:test:purge'
# Run all test suites per default
Rake::Task['default'].prerequisites.delete('spec')
Rake::Task['default'].prerequisites.delete('cucumber')
task :default => [:"test:freshen_ontology_fixtures", :spec, :cucumber]