Sha256: 63b147e587d97857cb15fe6c1ef5c158eefa90bef0e6b88f36fac416f2b84da1

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

task :spec do
  APP_RAKEFILE = File.expand_path("../../spec/dummy/Rakefile", __FILE__)
  load 'rails/tasks/engine.rake'
  require 'rails'
  require 'rspec/core/rake_task'
  ENV['RAILS_ENV'] = 'test'
  Rails.env = 'test'
  Rake::Task["db:drop"].invoke rescue true
  Rake::Task["db:create"].invoke
  Rake::Task['environment'].invoke
  Rake::Task['db:schema:load'].invoke
  RSpec::Core::RakeTask.new(:__spec) do |t|
    t.pattern = "./spec/**/*_spec.rb"
  end
  Rake::Task['__spec'].invoke
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activity_engine-0.0.7 tasks/spec.rake