Sha256: 0e09cd2b9ae40f81648b0a698e64adc7f2683be0be517d0a48c0fb96334be6e6

Contents?: true

Size: 655 Bytes

Versions: 11

Compression:

Stored size: 655 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 db"
    task :preparedb 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
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
fat_free_crm-0.15.2 lib/development_tasks/rspec.rake
fat_free_crm-0.16.4 lib/development_tasks/rspec.rake
fat_free_crm-0.15.1 lib/development_tasks/rspec.rake
fat_free_crm-0.16.3 lib/development_tasks/rspec.rake
fat_free_crm-0.16.2 lib/development_tasks/rspec.rake
fat_free_crm-0.16.1 lib/development_tasks/rspec.rake
fat_free_crm-0.16.0 lib/development_tasks/rspec.rake
fat_free_crm-0.15.0 lib/development_tasks/rspec.rake
fat_free_crm-0.15.0.beta.2 lib/development_tasks/rspec.rake
fat_free_crm-0.15.0.beta lib/development_tasks/rspec.rake
reduced_fat_crm-0.15.0.beta lib/development_tasks/rspec.rake