Sha256: bd8af36d9ee7f8d8628f2b15e57900f22b449ac90d9e4a46c9233852a1023917
Contents?: true
Size: 749 Bytes
Versions: 10
Compression:
Stored size: 749 Bytes
Contents
# Copyright (c) 2008-2013 Michael Dvorkin and contributors. # # Fat Free CRM is freely distributable under the terms of MIT license. # See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php #------------------------------------------------------------------------------ if defined?(RSpec) require 'rspec/core/rake_task' namespace :spec do desc "Preparing test env" task :prepare do tmp_env = Rails.env Rails.env = "test" Rake::Task["ffcrm:config:copy_database_yml"].invoke puts "Preparing test database..." Rake::Task["db:schema:load"].invoke Rails.env = tmp_env end end Rake::Task["spec"].prerequisites.clear Rake::Task["spec"].prerequisites.push("spec:prepare") end
Version data entries
10 entries across 10 versions & 2 rubygems